forked from extern/egroupware
* Calendar: fix alarms on recurring events got lost after 1st ocurrence
This commit is contained in:
parent
ef76353bb6
commit
0121d50c30
@ -1183,6 +1183,7 @@ class calendar_boupdate extends calendar_bo
|
|||||||
$alarm['time'] = $this->date2ts($event['start']) - $alarm['offset'];
|
$alarm['time'] = $this->date2ts($event['start']) - $alarm['offset'];
|
||||||
unset($alarm['times']);
|
unset($alarm['times']);
|
||||||
unset($alarm['next']);
|
unset($alarm['next']);
|
||||||
|
unset($alarm['keep_time']); // need to remove the keep_time, as otherwise the alarm would be deleted automatically
|
||||||
//error_log(__METHOD__."() moving alarm to next recurrence ".array2string($alarm));
|
//error_log(__METHOD__."() moving alarm to next recurrence ".array2string($alarm));
|
||||||
$this->save_alarm($alarm['cal_id'], $alarm, false); // false = do NOT update timestamp, as nothing changed for iCal clients
|
$this->save_alarm($alarm['cal_id'], $alarm, false); // false = do NOT update timestamp, as nothing changed for iCal clients
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user