Module: check_mk
Branch: master
Commit: a6391c5440db7f732e68d8da3362da0fa9742253
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6391c5440db7f…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Mon Oct 31 12:23:36 2016 +0100
Fixed checkbox bug in forms.
---
web/htdocs/forms.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/forms.py b/web/htdocs/forms.py
index 7d6027b..12cf6d8 100644
--- a/web/htdocs/forms.py
+++ b/web/htdocs/forms.py
@@ -274,7 +274,7 @@ def section(title = None, checkbox = None, id = None, simple=False,
hide = False
html.close_div()
if checkbox:
html.open_div(class_="checkbox")
- if type(checkbox) == str:
+ if type(checkbox) in [str, unicode, HTML]:
html.write(checkbox)
else:
name, active, attrname = checkbox