Calendar - Allow to save alarms for all participants

This commit is contained in:
nathangray 2018-12-14 11:51:46 -07:00
parent 6a760e193d
commit e525f7d5e3

View File

@ -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')