From a5b18a8c7bfa4da00a485006e0c6e60965ad39e1 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 27 May 2019 16:17:53 -0600 Subject: [PATCH] Pass ignore_acl parameter onto event read, to properly find previous event when ignoring acl --- calendar/inc/class.calendar_boupdate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index 0f3d4b165a..34be304cc2 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1217,7 +1217,7 @@ class calendar_boupdate extends calendar_bo { // invalidate the read-cache if it contains the event we store now if ($event['id'] == self::$cached_event['id']) self::$cached_event = array(); - $old_event = $this->read($event['id'], $event['recurrence'], false, 'server'); + $old_event = $this->read($event['id'], $event['recurrence'], $ignore_acl, 'server'); } else { @@ -1414,7 +1414,7 @@ class calendar_boupdate extends calendar_bo // Update history $tracking = new calendar_tracking($this); if (empty($event['id']) && !empty($cal_id)) $event['id']=$cal_id; - $tracking->track($save_event, (array)$old_event); + $tracking->track($save_event, $old_event); return $cal_id; }