Module: check_mk
Branch: master
Commit: 4d415d7dfbdd0f96923781cc4a57a0f4a6619110
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4d415d7dfbdd0f…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 14 12:20:52 2013 +0100
FIX: fix problem where BI-Boxes were invisible if not previously unfolded
---
ChangeLog | 2 ++
web/htdocs/bi.py | 4 ++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index cb8f06c..76d2bd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
1.2.2b2:
BI:
* FIX: fix exception in BI-Boxes views of host groups
+ * FIX: fix problem where BI-Boxes were invisible if not previously unfolded
Event Console:
* FIX: support non-Ascii characters in matching expressions. Note:
@@ -24,6 +25,7 @@
Multisite:
* FIX: Fixed several minor IE7 related layout bugs
+ * FIX: title of pages was truncated and now isn't anymore
* Cleanup form for executing commands on hosts/services
WATO:
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index efb7609..805342e 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1375,6 +1375,10 @@ def render_tree_foldable(row, boxes, omit_root, expansion_level, only_problems,
if is_open == None:
is_open = len(path) <= expansion_level
+ # Make sure that in case of BI Boxes (omit root) the root level is *always* visible
+ if not is_open and omit_root and len(path) == 1:
+ is_open = True
+
h = ""
state = tree[0]
omit_content = lazy and not is_open