Module: check_mk
Branch: master
Commit: f90f4bcf9e61954fd07697cb4ee1fdfd60646163
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f90f4bcf9e6195…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Jul 13 11:36:45 2015 +0200
#1270 Multsite site Hostfilters for views can no be negated
---
.werks/1270 | 9 +++++++++
ChangeLog | 1 +
web/plugins/visuals/filters.py | 6 +++---
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/1270 b/.werks/1270
new file mode 100644
index 0000000..f7f6920
--- /dev/null
+++ b/.werks/1270
@@ -0,0 +1,9 @@
+Title: Multsite site Hostfilters for views can no be negated
+Level: 1
+Component: multisite
+Compatible: compat
+Version: 1.2.7i3
+Date: 1436780167
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index adfc796..a1851b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,6 +57,7 @@
* 2391 SEC: Auth cookie is using "secure" flag when HTTPS request
detected...
* 2392 SEC: Auth cookie is always using "httponly" flag...
* 1268 The Snapins "Folders" and "Tree of Folders" can now be
used by users without wato permission
+ * 1270 Multsite site Hostfilters for views can no be negated
* 2314 FIX: Availability: fixed exception when grouping by host or service group
* 2361 FIX: Fix exception for missing key 'title' in certain cases of older
customized views
* 2379 FIX: Plugin-Output: Fixed handling of URLs within output of check_http...
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 004969b..7c75a7c 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -82,13 +82,13 @@ class FilterUnicode(FilterText):
return ""
# filter title info column
htmlvar
-declare_filter(100, FilterText("hostregex", _("Hostname"),
"host", "host_name", "host_regex",
"~~"),
+declare_filter(100, FilterText("hostregex", _("Hostname"),
"host", "host_name", "host_regex", "~~"
, True),
_("Search field allowing regular expressions and partial
matches"))
-declare_filter(101, FilterText("host", _("Hostname (exact
match)"), "host", "host_name",
"host", "="),
+declare_filter(101, FilterText("host", _("Hostname (exact
match)"), "host", "host_name",
"host", "=", True),
_("Exact match, used for linking"))
-declare_filter(102, FilterUnicode("hostalias", _("Hostalias"),
"host", "host_alias", "hostalias",
"~~"),
+declare_filter(102, FilterUnicode("hostalias", _("Hostalias"),
"host", "host_alias", "hostalias",
"~~", True),
_("Search field allowing regular expressions and partial
matches"))
declare_filter(200, FilterUnicode("serviceregex", _("Service"),
"service", "service_description", "service_regex",
"~~"),