Module: check_mk
Branch: master
Commit: 121c31b355c999220eb48da796c4fc0de534797a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=121c31b355c999…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon May 14 18:11:26 2018 +0200
6079 FIX BI Aggregation: Fixed crash when opening 'BI Aggregations containing this
Service' in service drop down menu if service is not part of any aggregation
Change-Id: I5ed83c234860f82fac3867488e054f2d1757018a
---
.werks/6079 | 10 ++++++++++
web/htdocs/bi.py | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/6079 b/.werks/6079
new file mode 100644
index 0000000..24ec061
--- /dev/null
+++ b/.werks/6079
@@ -0,0 +1,10 @@
+Title: BI Aggregation: Fixed crash when opening 'BI Aggregations containing this
Service' in service drop down menu if service is not part of any aggregation
+Level: 1
+Component: bi
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1526314124
+Class: fix
+
+
diff --git a/web/htdocs/bi.py b/web/htdocs/bi.py
index 90eedc7..d863beb 100644
--- a/web/htdocs/bi.py
+++ b/web/htdocs/bi.py
@@ -3380,7 +3380,7 @@ def table(columns, add_headers, only_sites, limit, filters):
if only_service:
affected = g_tree_cache["affected_services"].get(only_service)
if affected == None:
- items = []
+ items = {}
else:
by_groups = {}
for group, aggr in affected: