diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index a8428d9ed4..69a3e1f94e 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1396,8 +1396,9 @@ class calendar_boupdate extends calendar_bo * @param array $new_event event-array with the new stati * @param array $old_event event-array with the old stati * @param int $recur_date=0 date to change, or 0 = all since now + * @param boolean $skip_notification Do not send notifications. Parameter passed on to set_status(). */ - function update_status($new_event, $old_event , $recur_date=0) + function update_status($new_event, $old_event , $recur_date=0, $skip_notification=false) { if (!isset($new_event['participants'])) return; @@ -1417,7 +1418,7 @@ class calendar_boupdate extends calendar_bo // write the changes foreach ($new_event['participants'] as $userid => $status) { - $this->set_status($old_event, $userid, $status, $recur_date, true, false); + $this->set_status($old_event, $userid, $status, $recur_date, true, false,$skip_notification); } } diff --git a/calendar/inc/class.calendar_ical.inc.php b/calendar/inc/class.calendar_ical.inc.php index 1707aa8134..58d2ff7705 100644 --- a/calendar/inc/class.calendar_ical.inc.php +++ b/calendar/inc/class.calendar_ical.inc.php @@ -1691,7 +1691,7 @@ class calendar_ical extends calendar_boupdate if ($event_info['acl_edit']) { // update all participants if we have the right to do that - $this->update_status($event, $event_info['stored_event']); + $this->update_status($event, $event_info['stored_event'],0,$skip_notification); } elseif (isset($event['participants'][$this->user]) || isset($event_info['stored_event']['participants'][$this->user])) { @@ -1709,7 +1709,7 @@ class calendar_ical extends calendar_boupdate if ($event_info['acl_edit']) { // update all participants if we have the right to do that - $this->update_status($event, $event_info['stored_event'], $recurrence); + $this->update_status($event, $event_info['stored_event'], $recurrence,$skip_notification); } elseif (isset($event['participants'][$this->user]) || isset($event_info['master_event']['participants'][$this->user])) {