Module: check_mk
Branch: master
Commit: 5a7a1e2c59b615df1016cea141a580c5347c6fcd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5a7a1e2c59b615…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 8 12:16:05 2019 +0100
7232 FIX Fixed wrong sorting of view titles on "edit view page"
Change-Id: I1b2ce0b95210c971c1a5700dd9d70adb1560f125
---
.werks/7232 | 11 +++++++++++
cmk/gui/table.py | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/7232 b/.werks/7232
new file mode 100644
index 0000000..eee4c0a
--- /dev/null
+++ b/.werks/7232
@@ -0,0 +1,11 @@
+Title: Fixed wrong sorting of view titles on "edit view page"
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1552037734
+
+
diff --git a/cmk/gui/table.py b/cmk/gui/table.py
index 5d964fd..66846b6 100644
--- a/cmk/gui/table.py
+++ b/cmk/gui/table.py
@@ -475,7 +475,8 @@ def _sort_rows(rows, sort_col, sort_reverse):
# see the table in the first place.
try:
rows.sort(
- cmp=lambda a, b: utils.cmp_num_split(a[0][sort_col][0], b[0][sort_col][0]),
+ cmp=lambda a, b: utils.cmp_num_split(
+ html.strip_tags(a[0][sort_col][0]), html.strip_tags(b[0][sort_col][0])),
reverse=sort_reverse == 1)
except IndexError:
pass