Module: check_mk
Branch: master
Commit: 49aa677099416666a6397312555421fc032071f8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=49aa6770994166…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 24 15:29:10 2011 +0100
FIX: fixed sidebar group snapins reload
---
ChangeLog | 4 ++++
web/plugins/sidebar/shipped.py | 11 +++++------
2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f8ae631..b9e3d55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -71,6 +71,10 @@
* New columns num_hosts and num_services in status table
* New aggregation functions suminv and avginv (see Documentation)
+1.1.12p4:
+ Multisite:
+ * FIX: sidebar snapin Hostgroups and Servicegroups sometimes
+ failed with non-existing "available_views".
1.1.12p3:
Core, Setup, etc.:
* FIX: really suppress precompiling on PING-only hosts now
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 5f127b1..d597851 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -139,12 +139,11 @@ def render_groups(what):
name_to_alias = dict(data)
groups = [(name_to_alias[name].lower(), name_to_alias[name], name) for name in
name_to_alias.keys()]
groups.sort() # sort by Alias in lowercase
- target = views.get_context_link(config.user_id, "%sgroup" % what)
- if target:
- html.write('<ul>')
- for alias_lower, alias, name in groups:
- bulletlink(alias, target + "&%sgroup=%s" % (what,
htmllib.urlencode(name)))
- html.write('</ul>')
+ 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)
+ html.write('</ul>')
sidebar_snapins["hostgroups"] = {
"title" : _("Hostgroups"),