Module: check_mk
Branch: master
Commit: 12d569ee6d67e25edfd6fc22f36cbd477f011452
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=12d569ee6d67e2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 19 09:41:54 2016 +0200
3402 FIX Using information from inventory in column tooltips now longer crashes
---
.werks/3402 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/views.py | 7 +++++++
3 files changed, 18 insertions(+)
diff --git a/.werks/3402 b/.werks/3402
new file mode 100644
index 0000000..bedd345
--- /dev/null
+++ b/.werks/3402
@@ -0,0 +1,10 @@
+Title: Using information from inventory in column tooltips now longer crashes
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1461051685
+
+
diff --git a/ChangeLog b/ChangeLog
index 6195bf1..fd0c969 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -212,6 +212,7 @@
* 3395 FIX: Fix performance issue when many BI aggregations are active...
* 3398 FIX: Fix exception in Matrix layout if it contains certain complex columns
* 3401 FIX: Fix sorting and grouping hosts by their IPv4 address
+ * 3402 FIX: Using information from inventory in column tooltips now longer crashes
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node
selection...
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 783c5f9..78d201b 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1072,6 +1072,13 @@ def show_view(view, show_heading = False, show_buttons = True,
columns = get_needed_columns(view, master_painters)
join_columns = get_needed_columns(view, join_painters)
+ # 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
+
# Columns needed for sorters
for s in sorters:
if len(s) == 2: