Calendar: Make sure iCal imports recurring event exceptions as exceptions, not additional events

This commit is contained in:
nathan 2023-11-14 15:10:45 -07:00
parent a2df0b0b12
commit fef8d27790

View File

@ -1718,6 +1718,11 @@ class calendar_ical extends calendar_boupdate
$event_to_store = $event; // prevent $event from being changed by update method
$this->server2usertime($event_to_store);
$updated_id = $this->update($event_to_store, true,true,false,true,$msg,$skip_notification);
// Make sure it's marked as a recurrence exception, not an additional event
$this->so->recurrence($updated_id,
Api\DateTime::to($event_to_store['start'], 'server'),
Api\DateTime::to($event_to_store['end'], 'server'), [], true
);
unset($event_to_store);
}
break;