Module: check_mk
Branch: master
Commit: 14a9c443b6d53a83f9273fa24394d64ca19a119d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=14a9c443b6d53a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 16 14:19:26 2018 +0100
5905 FIX Configured "Receive fallback notifications" attribute of users was not
displayed correctly
The option was correctly saved for users, but always displayed as "unchecked"
checkbox when
editing a user.
Change-Id: I5c300e3e826683688607a9398fb58b796638eb35
---
.werks/5905 | 12 ++++++++++++
web/htdocs/wato.py | 3 ++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/5905 b/.werks/5905
new file mode 100644
index 0000000..c0f9d39
--- /dev/null
+++ b/.werks/5905
@@ -0,0 +1,12 @@
+Title: Configured "Receive fallback notifications" attribute of users was not
displayed correctly
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i4
+Date: 1521206306
+
+The option was correctly saved for users, but always displayed as "unchecked"
checkbox when
+editing a user.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 3fb5faa..64fcb56 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -11453,7 +11453,8 @@ def mode_edit_user(phase):
else:
forms.section(_("Fallback notifications"), simple=True)
- html.checkbox("fallback_contact", False, label = _("Receive
fallback notifications"))
+ html.checkbox("fallback_contact",
user.get("fallback_contact", False),
+ label = _("Receive fallback notifications"))
html.help(_("In case none of your notification rules handles a certain event
a notification "
"will be sent to this contact. This makes sure that in that case at
least <i>someone</i> "