Module: check_mk
Branch: master
Commit: 247e7b0fd2aafcec11c42b996ddd2b7589cc98f5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=247e7b0fd2aafc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 9 09:26:38 2018 +0200
6059 FIX "All Services with this description" view: Shows services of all sites
now
Change-Id: I6f1ee4da126f544ddd5fa82f16b1d4c50100b916
---
.werks/6059 | 11 +++++++++++
web/htdocs/views.py | 5 +++++
2 files changed, 16 insertions(+)
diff --git a/.werks/6059 b/.werks/6059
new file mode 100644
index 0000000..fe67780
--- /dev/null
+++ b/.werks/6059
@@ -0,0 +1,11 @@
+Title: "All Services with this description" view: Shows services of all sites
now
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1525850760
+
+
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index d81970a..c57568e 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2852,6 +2852,11 @@ def url_to_view(row, view_name):
if filter_key in dict(url_vars):
add_site_hint = False
+ # Hack for servicedesc view which is meant to show all services with the given
+ # description: Don't add the site filter for this view.
+ if view_name == "servicedesc":
+ add_site_hint = False
+
if add_site_hint and row.get('site'):
url_vars.append(('site', row['site']))