Calendar - Update recurrence adjustment check to match range end change from 9810077eab

This commit is contained in:
nathangray 2017-03-31 10:27:34 -06:00 committed by Ralf Becker
parent 78bd838488
commit f2a27d73c4

View File

@ -1318,7 +1318,7 @@ class calendar_boupdate extends calendar_bo
$event['created'] = $this->now; $event['created'] = $this->now;
$event['creator'] = $this->user; $event['creator'] = $this->user;
} }
$set_recurrences = $old_event ? $event['recur_enddate'] != $old_event['recur_enddate'] : false; $set_recurrences = $old_event ? $event['recur_enddate'] != $old_event['recur_enddate']+1 : false;
$set_recurrences_start = 0; $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) if (($cal_id = $this->so->save($event,$set_recurrences,$set_recurrences_start,0,$event['etag'])) && $set_recurrences && $event['recur_type'] != MCAL_RECUR_NONE)
{ {