Module: check_mk
Branch: master
Commit: 265aa8d901502bd768bb5080db72277817f9fa16
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=265aa8d901502b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 12:42:10 2018 +0100
5882 FIX Agent bakery host selection was showing wrong settings after saving
On the configuration page of the Automatic agent updates, there is a condition
configuration. When saving new conditions, for example host tag conditions, these
conditions were not shown correctly on the page right after saving. When browsing
away and opening the page again, the correct settings were shown.
Change-Id: I58088840fac31c46aace3af9d054320e9a9f8d48
---
.werks/5882 | 14 ++++++++++++++
web/htdocs/valuespec.py | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/5882 b/.werks/5882
new file mode 100644
index 0000000..6d423eb
--- /dev/null
+++ b/.werks/5882
@@ -0,0 +1,14 @@
+Title: Agent bakery host selection was showing wrong settings after saving
+Level: 1
+Component: agents
+Class: fix
+Compatible: compat
+Edition: cee
+State: unknown
+Version: 1.5.0i4
+Date: 1520249710
+
+On the configuration page of the Automatic agent updates, there is a condition
+configuration. When saving new conditions, for example host tag conditions, these
+conditions were not shown correctly on the page right after saving. When browsing
+away and opening the page again, the correct settings were shown.
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 0c4f76b..6472fd7 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -3428,7 +3428,7 @@ class Dictionary(ValueSpec):
if self._columns == 2:
label += ":"
colon_printed = True
- html.checkbox("%s_USE" % vp, param in value, label=label,
+ html.checkbox("%s_USE" % vp, visible, label=label,
onclick="valuespec_toggle_option(this, %r)" %
div_id)
else:
visible = True