Calendar: Deleting an event sometimes left other user's alarms

Do not need to pay attention to the ACL of the alarm when the whole event is deleted
This commit is contained in:
nathan 2023-06-06 11:59:43 -06:00
parent 3a19a93b9a
commit 2d7e267c4b

View File

@ -1951,7 +1951,7 @@ class calendar_boupdate extends calendar_bo
{ {
foreach($event['alarm'] as $id => $alarm) foreach($event['alarm'] as $id => $alarm)
{ {
$this->delete_alarm($id); $this->delete_alarm($id, true);
} }
} }
} }