Module: check_mk
Branch: master
Commit: 56ec29c38d5177f001de19631b977b6838e16e06
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=56ec29c38d5177…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 16 18:29:49 2017 +0100
4372 FIX Timeperiods: Fixed broken import of iCal files
Change-Id: I85db092465c8cb455713f007763fac105c25a11f
---
.werks/4372 | 10 ++++++++++
web/htdocs/wato.py | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4372 b/.werks/4372
new file mode 100644
index 0000000..3dc108d
--- /dev/null
+++ b/.werks/4372
@@ -0,0 +1,10 @@
+Title: Timeperiods: Fixed broken import of iCal files
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487266167
+
+
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 9783755..3433dcc 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8757,11 +8757,11 @@ def mode_timeperiod_import_ical(phase):
html.set_var('%s_0_from' % day, '')
html.set_var('%s_0_until' % day, '')
- html.set_var('except_count', len(data['events']))
+ html.set_var('except_count', "%d" %
len(data['events']))
for index, event in enumerate(data['events']):
index += 1
html.set_var('except_%d_0' % index, event['date'])
- html.set_var('except_indexof_%d' % index, index)
+ html.set_var('except_indexof_%d' % index, "%d" %
index)
if ical['times']:
for n in range(3):
if ical['times'][n]: