From 6a760e193d1853b96eee5fded13d118a7371f6bd Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 14 Dec 2018 11:50:15 -0700 Subject: [PATCH] Calendar - Allow event owner to save alarms for all participants --- calendar/inc/class.calendar_boupdate.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/calendar/inc/class.calendar_boupdate.inc.php b/calendar/inc/class.calendar_boupdate.inc.php index c3db8e8a1a..9428ebb124 100644 --- a/calendar/inc/class.calendar_boupdate.inc.php +++ b/calendar/inc/class.calendar_boupdate.inc.php @@ -1334,6 +1334,9 @@ 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; + $status = $expanded['participants'][$alarm['owner']]; if (!isset($status) || calendar_so::split_status($status) === 'R') {