diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index e82983e9c9e..668eaaab932 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -770,7 +770,7 @@ public function import($content, $contentType, $calendar = null) protected function _addiCalEvent($content, $driver, $exception = false) { $event = $driver->getEvent(); - $event->fromiCalendar($content); + $event->fromiCalendar($content, true); // Check if the entry already exists in the data source, first by UID. if (!$exception) { try { @@ -1081,7 +1081,7 @@ public function replace($uid, $content, $contentType, $calendar = null) $component->getAttribute('RECURRENCE-ID'); $this->_addiCalEvent($component, Kronolith::getDriver(null, $calendar), true); } catch (Horde_Icalendar_Exception $e) { - $event->fromiCalendar($component); + $event->fromiCalendar($component, true); // Ensure we keep the original UID, even when content does not // contain one and fromiCalendar creates a new one. $event->uid = $uid;