Module: check_mk
Branch: master
Commit: a1b629c3caf4558e63ae848dc187e2eef0d1dc02
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a1b629c3caf455…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Nov 11 14:00:03 2016 +0100
Fixed bug when rendering table views that have joined columns
---
web/plugins/views/layouts.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/plugins/views/layouts.py b/web/plugins/views/layouts.py
index 14af441..e05251d 100644
--- a/web/plugins/views/layouts.py
+++ b/web/plugins/views/layouts.py
@@ -637,7 +637,7 @@ def render_grouped_list(rows, view, group_cells, cells, num_columns,
show_checkb
# or host - if available - to color the complete line
if num_columns == 1:
# render state, if available through whole tr
- if row.get('service_description', '') == '':
+ if not row.get('service_description'):
state = row.get("host_state", 0)
if state > 0: state +=1 # 1 is critical for hosts
else: