Module: check_mk
Branch: master
Commit: ead61c092057f51b6679c02e9e184daef2d2b1da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ead61c092057f5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 19 13:25:00 2016 +0200
Fix exception introduced today in tooltip inventory fix
---
web/htdocs/views.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 78d201b..71de7d2 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1074,10 +1074,10 @@ def show_view(view, show_heading = False, show_buttons = True,
# Inventory data needed in any of the tool tips
for painter in master_painters:
- tooltip_painter_name = painter[2]
- if tooltip_painter_name:
- if tooltip_painter_name.startswith("inv_"):
- need_inventory_data = True
+ if len(painter) > 2:
+ tooltip_painter_name = painter[2]
+ if tooltip_painter_name and
tooltip_painter_name.startswith("inv_"):
+ need_inventory_data = True
# Columns needed for sorters
for s in sorters: