Module: check_mk
Branch: master
Commit: 270e2bb6395b32da5b79dc8ac84ea78ef9a3da84
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=270e2bb6395b32…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 9 14:51:10 2019 +0200
Fix handling of tables using group headers since 62917296f4
Change-Id: I8948f7b25649d5d6db7f3290894833844f93535c
---
cmk/gui/table.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmk/gui/table.py b/cmk/gui/table.py
index 4dbb95a..aad9f8c 100644
--- a/cmk/gui/table.py
+++ b/cmk/gui/table.py
@@ -362,7 +362,10 @@ class Table(object):
def _get_empty_columns(self, rows, num_cols):
empty_columns = [True] * num_cols
- for row_spec, _css, _state, _fixed, _attrs in rows:
+ for row_spec, _css, state, _fixed, _attrs in rows:
+ if state == "header":
+ continue # Don't care about group headers
+
for col_index, (cell_content, _css_classes, _colspan) in
enumerate(row_spec):
empty_columns[col_index] &= not cell_content
return empty_columns