Module: check_mk
Branch: master
Commit: 7793d98e56ef5a1626af2f00529052e63e1b150d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7793d98e56ef5a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sat Jun 17 13:24:29 2017 +0200
Fixed broken dashlet edit after recent refactoring
Change-Id: I48d0d85b1dfd239e2a22699e93211405c46225af
---
web/htdocs/visuals.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/visuals.py b/web/htdocs/visuals.py
index bb7f342..1d4bab8 100644
--- a/web/htdocs/visuals.py
+++ b/web/htdocs/visuals.py
@@ -498,7 +498,13 @@ def page_create_visual(what, info_keys, next_url = None):
def get_context_specs(visual, info_handler):
context_specs = []
- info_keys = info_handler(visual) if info_handler else infos.keys()
+
+ info_keys = []
+ if info_handler:
+ info_keys = info_handler(visual)
+
+ if not info_keys:
+ info_keys = infos.keys()
single_info_keys = [key for key in info_keys if key in
visual['single_infos']]
multi_info_keys = [key for key in info_keys if key not in single_info_keys]