From 5e44c30553b3e50afa76418fe8d99907ecb7ea34 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 29 Jan 2012 18:23:04 +0000 Subject: [PATCH] * Calendar/iCal/CalDAV: if no end(-time) is given in iCal we use the default lenght from user prefs --- calendar/inc/class.calendar_ical.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 1980f0ae36..ef25e69c9a 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -2994,6 +2994,13 @@ class calendar_ical extends calendar_boupdate $event['recur_enddate'] = egw_time::to($last, 'server'); } + // if no end is given in iCal we use the default lenght from user prefs + // whole day events get one day in calendar_boupdate::save() + if (!isset($event['end'])) + { + $event['end'] = 60 * $this->cal_prefs['defaultlength']; + } + if ($this->calendarOwner) $event['owner'] = $this->calendarOwner; if ($this->log)