Module: check_mk
Branch: master
Commit: 3c626779cc77dcd035c7675a771f94ddb6c1fd80
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c626779cc77dc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jan 20 10:50:28 2015 +0100
#1871 FIX Site filter is only shown as host related filter now
Previously the site filter was displayed for all kind of object
types in the view editor. This has been fixed now.
---
.werks/1871 | 11 +++++++++++
ChangeLog | 1 +
web/plugins/visuals/filters.py | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1871 b/.werks/1871
new file mode 100644
index 0000000..6283c0a
--- /dev/null
+++ b/.werks/1871
@@ -0,0 +1,11 @@
+Title: Site filter is only shown as host related filter now
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1421747385
+
+Previously the site filter was displayed for all kind of object
+types in the view editor. This has been fixed now.
diff --git a/ChangeLog b/ChangeLog
index cc4999b..2a02c77 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -112,6 +112,7 @@
* 1804 FIX: Fixed prechecked checkboxes in view actions after first action submit...
* 1843 FIX: Fixed crash in display of crash report for precompiled host checks
* 1870 FIX: Joined columns were empty in CSV, JSON or PYTHON exports of view...
+ * 1871 FIX: Site filter is only shown as host related filter now...
WATO:
* 1760 Added search form to manual checks page
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 46f3aff..4ec065a 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -498,7 +498,7 @@ declare_filter(232, FilterNagiosExpression("service",
"service_staleness",
class FilterSite(Filter):
def __init__(self, name, enforce):
- Filter.__init__(self, name, _("Site") + (enforce and _( "
(enforced)") or ""), None, ["site"], [])
+ Filter.__init__(self, name, _("Site") + (enforce and _( "
(enforced)") or ""), 'host', ["site"], [])
self.enforce = enforce
def visible(self):