Module: check_mk
Branch: master
Commit: 97e6767074f558331dc6dc22c0c3a406403e6409
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97e6767074f558…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 24 13:18:44 2018 +0200
6364 FIX check_mk_active_bi: Fixed crashed checks (Regression in 1.5.0b9)
The check crashed with an "Invalid json reponse" error since 1.5.0b9.
Change-Id: Ibc33e6e0e787986382a5e3d2d809151c0b9ac71b
---
.werks/6364 | 11 +++++++++++
cmk/gui/views.py | 2 ++
2 files changed, 13 insertions(+)
diff --git a/.werks/6364 b/.werks/6364
new file mode 100644
index 0000000..fdb68f2
--- /dev/null
+++ b/.werks/6364
@@ -0,0 +1,11 @@
+Title: check_mk_active_bi: Fixed crashed checks (Regression in 1.5.0b9)
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1532431051
+
+The check crashed with an "Invalid json reponse" error since 1.5.0b9.
diff --git a/cmk/gui/views.py b/cmk/gui/views.py
index 7da9f21..8cf510f 100644
--- a/cmk/gui/views.py
+++ b/cmk/gui/views.py
@@ -1422,6 +1422,8 @@ def ajax_set_viewoption():
def show_context_links(thisview, datasource, show_filters,
enable_commands, enable_checkboxes, show_checkboxes,
show_availability, show_combined_graphs):
+ if html.output_format != "html":
+ return
html.begin_context_buttons()