mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Change recurrence end date comparison to handle up to 1 second difference, for mix of old and new events
see 2f534beb34
This commit is contained in:
parent
44710a4183
commit
1d6fcf3f68
@ -1360,7 +1360,7 @@ class calendar_boupdate extends calendar_bo
|
||||
$event['created'] = $this->now;
|
||||
$event['creator'] = $this->user;
|
||||
}
|
||||
$set_recurrences = $old_event ? $event['recur_enddate'] != $old_event['recur_enddate']+1 : false;
|
||||
$set_recurrences = $old_event ? abs($event['recur_enddate'] - $old_event['recur_enddate']) > 1 : false;
|
||||
$set_recurrences_start = 0;
|
||||
if (($cal_id = $this->so->save($event,$set_recurrences,$set_recurrences_start,0,$event['etag'])) && $set_recurrences && $event['recur_type'] != MCAL_RECUR_NONE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user