Module: check_mk
Branch: master
Commit: 544371a341735522c489e5bd112bef13600ad40a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=544371a3417355…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 7 09:33:01 2015 +0100
#1803 FIX Fixed exception in Check_MK prediction page
The page was showing up an exception right after opening the page.
---
.werks/1803 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/prediction.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/1803 b/.werks/1803
new file mode 100644
index 0000000..515bc9f
--- /dev/null
+++ b/.werks/1803
@@ -0,0 +1,10 @@
+Title: Fixed exception in Check_MK prediction page
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1420619546
+
+The page was showing up an exception right after opening the page.
diff --git a/ChangeLog b/ChangeLog
index 993e04b..1f7f9fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -64,6 +64,7 @@
* 1800 FIX: Fixed umlauts and HTML tags in exception texts...
* 1796 FIX: Fix filtering in Multisite View BI Boxes...
* 1802 FIX: Links in messages like "successfully sent X commands" are now
working again...
+ * 1803 FIX: Fixed exception in Check_MK prediction page...
WATO:
* 1760 Added search form to manual checks page
diff --git a/web/htdocs/prediction.py b/web/htdocs/prediction.py
index c416b60..aa89e21 100644
--- a/web/htdocs/prediction.py
+++ b/web/htdocs/prediction.py
@@ -88,7 +88,7 @@ def page_graph():
html.begin_form("prediction")
html.write(_("Show prediction for "))
- html.select("timegroup", choices, choices[0],
onchange="document.prediction.submit();")
+ html.select("timegroup", choices, choices[0][0],
onchange="document.prediction.submit();")
html.hidden_fields()
html.end_form()