0011552: edgecase exdate calculation fail upon series split
[tine20] / tine20 / Calendar / Controller / Event.php
index 0e31722..7255482 100644 (file)
@@ -1038,7 +1038,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