From e525f7d5e30efe05e780a39c7b5978b788e5d0ea Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 14 Dec 2018 11:51:46 -0700 Subject: [PATCH] Calendar - Allow to save alarms for all participants --- 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 9428ebb124..7dbbef7f61 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1334,8 +1334,8 @@ class calendar_boupdate extends calendar_bo // remove alarms belonging to not longer existing or rejected participants if ($alarm['owner'] && isset($expanded['participants'])) { - // Don't auto-delete alarm if created by event owner - if($alarm['all'] && $alarm['owner'] == $event['owner']) continue; + // Don't auto-delete alarm if for all users + if($alarm['all']) continue; $status = $expanded['participants'][$alarm['owner']]; if (!isset($status) || calendar_so::split_status($status) === 'R')