Module: check_mk
Branch: master
Commit: cfd908aa4cb42a80513151551e557689b4eabe78
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cfd908aa4cb42a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 16 10:55:12 2011 +0100
FIX: Host-/Servicegroup snapin: Showing group names when no alias is available
---
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dc9e769..fba87f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -25,6 +25,7 @@
language is not available
* Repair layout of Perf-O-Meter in single dataset layout
* FIX: Fixed duplicate view plugin loading when using localized multisite
+ * FIX: Host-/Servicegroup snapin: Showing group names when no alias is available
BI:
* Host/Service elements are now iterable via FOREACH_HOST, e.g.
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index a7bb565..1efe577 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -142,7 +142,7 @@ def render_groups(what):
html.write('<ul>')
for alias_lower, alias, name in groups:
url = "view.py?view_name=%sgroup&%sgroup=%s" % (what, what, htmllib.urlencode(name))
- bulletlink(alias, url)
+ bulletlink(alias or name, url)
html.write('</ul>')
sidebar_snapins["hostgroups"] = {