Module: check_mk
Branch: master
Commit: 23fc1edaa23c440819198b3d6838c577b4c7b071
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=23fc1edaa23c44…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 2 12:38:06 2014 +0200
Fix bug when displaying contact group alias in WATO folder details
---
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 ef453c0..ea635b4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5904,9 +5904,9 @@ class ContactGroupsAttribute(Attribute):
self.load_data()
items = self._contactgroups.items()
items.sort(cmp = lambda a,b: cmp(a[1]['alias'], b[1]['alias']))
- for name, alias in items:
+ for name, cgroup in items:
if name in value["groups"]:
- display_name = alias and alias or name
+ display_name = cgroup.get("alias", name)
texts.append('<a
href="wato.py?mode=edit_contact_group&edit=%s">%s</a>' % (name,
display_name))
result = ", ".join(texts)
if texts and value["use"]: