Module: check_mk
Branch: master
Commit: 4495f90b799cdcb8dad074566874687bd267da4d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4495f90b799cdc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Jul 10 10:38:32 2018 +0200
6339 FIX Fixed sorting of subfolders in breadcrump navigation
Change-Id: I9ce851f7172a90f19d183fcd5a7db31224781f0a
---
.werks/6339 | 11 +++++++++++
web/htdocs/watolib.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6339 b/.werks/6339
new file mode 100644
index 0000000..d877220
--- /dev/null
+++ b/.werks/6339
@@ -0,0 +1,11 @@
+Title: Fixed sorting of subfolders in breadcrump navigation
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1531211891
+
+
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 94922f3..879179f 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1811,7 +1811,7 @@ class CREFolder(BaseFolder):
def subfolder_choices(self):
choices = []
- for subfolder in self.visible_subfolders().values():
+ for subfolder in self.visible_subfolders_sorted_by_title():
choices.append((subfolder.path(), subfolder.title()))
return choices