Module: check_mk
Branch: master
Commit: 30d942faf4848d5fb4412100e3bc4e61ba3d4932
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=30d942faf4848d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 15 13:08:46 2016 +0100
Fixed recently introduced bug
---
web/htdocs/dashboard.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/dashboard.py b/web/htdocs/dashboard.py
index 8388315..06d5804 100644
--- a/web/htdocs/dashboard.py
+++ b/web/htdocs/dashboard.py
@@ -1198,7 +1198,15 @@ def check_ajax_update():
ident = int(html.var('id'))
load_dashboards(lock=True)
- dashlet = get_dashlet(board, ident)
+
+ if board not in available_dashboards:
+ raise MKGeneralException(_('The requested dashboard does not exist.'))
+ dashboard = available_dashboards[board]
+
+ try:
+ dashlet = dashboard['dashlets'][ident]
+ except IndexError:
+ raise MKGeneralException(_('The dashlet does not exist.'))
return dashlet, dashboard