Module: check_mk
Branch: master
Commit: f836469abcc210bd42785b0b9f86bccc20b5969b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f836469abcc210…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Jul 17 11:26:06 2017 +0200
Fixed broken tooltip preselection in some cases
Change-Id: I929d2f2b0ff333599d97d36fb865f318f9cf867c
---
web/htdocs/views.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 934bd6a..b561ef2 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -1281,15 +1281,15 @@ def transform_view_to_valuespec_value(view):
for entry in view.get('painters', []):
if len(entry) == 5:
pname, viewname, tooltip, join_index, col_title = entry
- columns.append((pname, join_index, viewname, tooltip, col_title))
+ columns.append((pname, join_index, viewname, tooltip or None, col_title))
elif len(entry) == 4:
pname, viewname, tooltip, join_index = entry
- columns.append((pname, join_index, viewname, tooltip, ''))
+ columns.append((pname, join_index, viewname, tooltip or None, ''))
elif len(entry) == 3:
pname, viewname, tooltip = entry
- columns.append((pname, viewname, tooltip))
+ columns.append((pname, viewname, tooltip or None))
else:
pname, viewname = entry