Module: check_mk
Branch: master
Commit: d0a7fe51cdfdb14ce190eca5d6fe4025182bd3cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d0a7fe51cdfdb1…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Aug 14 11:22:48 2013 +0200
Host Tag Filter: fixed encoding problem
---
web/plugins/views/filters.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/plugins/views/filters.py b/web/plugins/views/filters.py
index 2bc31a7..c454c5a 100644
--- a/web/plugins/views/filters.py
+++ b/web/plugins/views/filters.py
@@ -713,7 +713,10 @@ class FilterHostTags(Filter):
title = tag_entry[1]
if tag is None:
tag = ''
- grouped[entry[0]].append([tag, str(title)])
+
+ if type(title) == unicode:
+ title = title.encode("utf-8")
+ grouped[entry[0]].append([tag, title])
html.javascript('g_hosttag_groups = %r;' % grouped)
html.write('<table>')