Module: check_mk
Branch: master
Commit: 3a67603414faa5412a7d07e35a17484aa4bf13c9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3a67603414faa5…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Nov 16 14:38:44 2015 +0100
Fix bug in table: missing title of first column if neither sortable nor searchable
---
web/htdocs/table.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/table.py b/web/htdocs/table.py
index b86bf30..d110479 100644
--- a/web/htdocs/table.py
+++ b/web/htdocs/table.py
@@ -270,6 +270,7 @@ def end():
# Add the table action link
if first_col:
+ first_col = False
if actions_enabled:
if actions_visible:
state = '0'
@@ -284,9 +285,10 @@ def end():
help, img, cssclass = 'toggle_actions')
html.write("<span>%s</span>" % header)
html.write("</div>")
- first_col = False
+ else:
+ html.write(header)
else:
- html.write("%s" % header)
+ html.write(header)
html.write("</th>\n")
html.write(" </tr>\n")