Module: check_mk
Branch: master
Commit: a6084cd5519f0efe6934704897b879fd4ad754cf
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6084cd5519f0e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Oct 17 12:31:00 2013 -0500
FIX: Fix exception when showing BI tree in reporting time warp
---
ChangeLog | 3 +++
web/htdocs/bi.py | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index e01e70b..6ebe996 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,9 @@
* FIX: Fix output format python for several numeric columns
* FIX: Fixed searching hosts by aliases/adresses
+ BI:
+ * FIX: Fix exception when showing BI tree in reporting time warp
+
Notifications:
* Blacklisting for services in the felixble notification system
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 35caefd..fc6d18c 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -1459,7 +1459,7 @@ def render_tree_foldable(row, boxes, omit_root, expansion_level,
only_problems,
h += aggr_render_node(tree, tree[2]["title"], mc, show_host)
if not is_empty:
- h += '<ul id="%d:%s"
%sclass="subtree">' % (expansion_level, path_id, style)
+ h += '<ul id="%d:%s"
%sclass="subtree">' % (expansion_level or 0, path_id, style)
if not omit_content:
for node in tree[3]:
estate = node[1] != None and node[1] or node[0]