mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Calendar: Make sure iCal imports recurring event exceptions as exceptions, not additional events
This commit is contained in:
parent
a2df0b0b12
commit
fef8d27790
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user