Don't copy recurrence_date to future occurrences
This commit is contained in:
parent
dbdce67e1e
commit
8a74dc2d28
3 changed files with 3 additions and 1 deletions
|
@ -1676,6 +1676,7 @@ class calendar extends rcube_plugin
|
|||
if ($event['recurrence']) {
|
||||
$event['recurrence_text'] = $this->lib->recurrence_text($event['recurrence']);
|
||||
$event['recurrence'] = $this->lib->to_client_recurrence($event['recurrence'], $event['allday']);
|
||||
unset($event['recurrence_date']);
|
||||
}
|
||||
|
||||
foreach ((array)$event['attachments'] as $k => $attachment) {
|
||||
|
|
|
@ -661,7 +661,7 @@ class kolab_calendar extends kolab_storage_folder_api
|
|||
*/
|
||||
private function _merge_event_data(&$event, $overlay)
|
||||
{
|
||||
static $forbidden = array('id','uid','recurrence','organizer','_attachments');
|
||||
static $forbidden = array('id','uid','recurrence','recurrence_date','organizer','_attachments');
|
||||
|
||||
foreach ($overlay as $prop => $value) {
|
||||
// adjust time of the recurring event instance
|
||||
|
|
|
@ -962,6 +962,7 @@ class kolab_driver extends calendar_driver
|
|||
// save as new exception to master event
|
||||
if ($add_exception) {
|
||||
$event['_instance'] = $old['_instance'];
|
||||
$event['recurrence_date'] = $old['recurrence_date'];
|
||||
$master['recurrence']['EXCEPTIONS'][] = $event;
|
||||
}
|
||||
$success = $storage->update_event($master);
|
||||
|
|
Loading…
Add table
Reference in a new issue