Module: check_mk
Branch: master
Commit: c1b5ef01b63c707a4082273ccfcbf660c87f8c6d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c1b5ef01b63c70…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 5 14:07:37 2017 +0100
Fixed saving of owned views (that have no builtin view with equal name) - regression in
#5529
Change-Id: Ie44999e71a9ffff03f67e99ebb88a86445144e6e
---
web/htdocs/visuals.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index 93ac934..3ca54e2 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -854,7 +854,8 @@ def page_edit_visual(what, all_visuals, custom_field_handler = None,
html.begin_form("visual", method = "POST")
html.hidden_field("back", back_url)
html.hidden_field("mode", mode)
- html.hidden_field("load_user", html.var("load_user",
"")) # safe old name in case user changes it
+ if html.has_var("load_user"):
+ html.hidden_field("load_user", html.var("load_user")) # safe
old name in case user changes it
html.hidden_field("load_name", oldname) # safe old name in case user
changes it
# FIXME: Hier werden die Flags aus visibility nicht korrekt geladen. Wäre es nicht
besser,