Merge branch '2013.10' into 2014.11
[tine20] / tine20 / Calendar / Controller / Event.php
index 2ac6d09..beb3e54 100644 (file)
@@ -1049,7 +1049,9 @@ class Calendar_Controller_Event extends Tinebase_Controller_Record_Abstract impl
             $pastPersistentExceptionEvents = new Tinebase_Record_RecordSet('Calendar_Model_Event');
             $futurePersistentExceptionEvents = new Tinebase_Record_RecordSet('Calendar_Model_Event');
             foreach ($persistentExceptionEvents as $persistentExceptionEvent) {
-                $persistentExceptionEvent->dtstart->isLater($_event->dtstart) ? $futurePersistentExceptionEvents->addRecord($persistentExceptionEvent) : $pastPersistentExceptionEvents->addRecord($persistentExceptionEvent);
+                $persistentExceptionEvent->getOriginalDtStart()->isLater($_event->dtstart) ?
+                    $futurePersistentExceptionEvents->addRecord($persistentExceptionEvent) :
+                    $pastPersistentExceptionEvents->addRecord($persistentExceptionEvent);
             }
             
             // update baseEvent