Module: check_mk
Branch: master
Commit: 3c259a73b1cf22e252ddacf95b84d69fcb56bf64
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3c259a73b1cf22…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 2 15:56:33 2014 +0200
Fix folder editing when a contact group has the name "use"
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 2b9b755..aa304e1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5556,7 +5556,7 @@ class ContactGroupsAttribute(Attribute):
items = self._contactgroups.items()
items.sort(cmp = lambda a,b: cmp(a[1], b[1]))
for name, alias in items:
- html.checkbox(self._name + "_" + name, name in cgs)
+ html.checkbox(self._name + "_n_" + name, name in cgs)
html.write(' <a href="%s">%s</a><br>' %
(make_link([("mode", "edit_contact_group"), ("edit",
name)]), alias and alias or name))
html.write("<hr>")
html.checkbox(self._name + "_use", use)
@@ -5574,7 +5574,7 @@ class ContactGroupsAttribute(Attribute):
cgs = []
self.load_data()
for name in self._contactgroups:
- if html.get_checkbox(self._name + "_" + name):
+ if html.get_checkbox(self._name + "_n_" + name):
cgs.append(name)
return html.get_checkbox(self._name + "_use"), cgs