Module: check_mk
Branch: master
Commit: 714649f43d1a918927f9f9077701eba37ab5672f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=714649f43d1a91…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Oct 8 16:05:42 2014 +0200
fix host group filter from firing of not variable is set
---
web/plugins/visuals/filters.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/web/plugins/visuals/filters.py b/web/plugins/visuals/filters.py
index 243b033..e63c225 100644
--- a/web/plugins/visuals/filters.py
+++ b/web/plugins/visuals/filters.py
@@ -209,6 +209,9 @@ class FilterGroupCombo(Filter):
return html.var(htmlvar)
def filter(self, infoname):
+ if not html.has_var(self.htmlvars[0]):
+ return "" # Skip if filter is not being set at all
+
current_value = self.current_value()
if not current_value:
if not self.enforce: