Calendar - fix missing history

This commit is contained in:
nathangray 2018-11-21 13:24:49 -07:00
parent f938c7cd0c
commit cbaf7e7062

View File

@ -1382,7 +1382,7 @@ class calendar_boupdate extends calendar_bo
} }
$set_recurrences = $old_event ? abs($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; $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($save_event,$set_recurrences,$set_recurrences_start,0,$event['etag'])) && $set_recurrences && $event['recur_type'] != MCAL_RECUR_NONE)
{ {
$save_event['id'] = $cal_id; $save_event['id'] = $cal_id;
// unset participants to enforce the default stati for all added recurrences // unset participants to enforce the default stati for all added recurrences