Module: check_mk
Branch: master
Commit: 4d5bb5ad766201d83bc77801660d312a5695be1f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4d5bb5ad766201…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 19 09:00:48 2018 +0200
6354 FIX Timespecific parameters: List of timeperiods is now sorted
Change-Id: I874004bb32d9b0d913349784c16e0269388e3173
---
.werks/6354 | 11 +++++++++++
cmk/gui/watolib.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6354 b/.werks/6354
new file mode 100644
index 0000000..e7815e0
--- /dev/null
+++ b/.werks/6354
@@ -0,0 +1,11 @@
+Title: Timespecific parameters: List of timeperiods is now sorted
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1531940489
+
+
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index 5109054..0e8b050 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -8809,7 +8809,7 @@ class TimeperiodSelection(DropdownChoice):
if always not in elements:
elements.insert(0, always)
- return elements
+ return sorted(elements, key=lambda x: x[1].lower())