Module: check_mk
Branch: master
Commit: 0fd45b835248c8de4614363898def900c7549adb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0fd45b835248c8…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jan 21 11:03:01 2019 +0100
Fixed broken view editor after htmllib refactoring
Change-Id: I4cfa6193e992ff1931c3b6cd07f617b936a5e859
---
cmk/gui/plugins/visuals/utils.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/plugins/visuals/utils.py b/cmk/gui/plugins/visuals/utils.py
index dbea96a..de8b192 100644
--- a/cmk/gui/plugins/visuals/utils.py
+++ b/cmk/gui/plugins/visuals/utils.py
@@ -137,7 +137,9 @@ class Filter(object):
# the HTML context where it can be used by e.g. the display() method.
def set_value(self, value):
for varname in self.htmlvars:
- html.request.set_var(varname, value.get(varname))
+ var_value = value.get(varname)
+ if var_value is not None:
+ html.request.set_var(varname, var_value)
# TODO: We should merge this with Filter() and make all vars unicode ...