Module: check_mk
Branch: master
Commit: 656eca2d6751361138d70c0a88181f7490cd3b54
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=656eca2d675136…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Feb 29 11:18:37 2016 +0100
#3251 FIX Fix sorting of entries in Views sidebar element
---
.werks/3251 | 10 ++++++++++
ChangeLog | 1 +
web/plugins/sidebar/shipped.py | 3 +--
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/3251 b/.werks/3251
new file mode 100644
index 0000000..71104c4
--- /dev/null
+++ b/.werks/3251
@@ -0,0 +1,10 @@
+Title: Fix sorting of entries in Views sidebar element
+Level: 2
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.9i1
+Date: 1456741105
+
+
diff --git a/ChangeLog b/ChangeLog
index 5d1f7bc..0bb1187 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -57,6 +57,7 @@
* 3077 FIX: CSV export is now available for host/service availability and now
includes summary line
* 3181 FIX: Omit icon for downloading agent output on shadow hosts (cmcdump)...
* 3248 FIX: Avoid broken list of context filters and case of a BI error
+ * 3251 FIX: Fix sorting of entries in Views sidebar element
WATO:
* 3244 WATO BI Module: swap order of aggregation function and child node
selection...
diff --git a/web/plugins/sidebar/shipped.py b/web/plugins/sidebar/shipped.py
index 48878a9..fc593b0 100644
--- a/web/plugins/sidebar/shipped.py
+++ b/web/plugins/sidebar/shipped.py
@@ -136,8 +136,7 @@ def render_views():
del page_type_topics[topic]
all_topics_with_entries.append((topic, entries))
- all_topics_with_entries += page_type_topics.items()
- all_topics_with_entries.sort()
+ all_topics_with_entries += sorted(page_type_topics.items())
for topic, entries in all_topics_with_entries:
render_topic(topic, entries)