mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 15:18:58 +01:00
Delete alarms even if event is not really deleted
This commit is contained in:
parent
d755693944
commit
eeeebb5197
@ -1215,6 +1215,14 @@ class calendar_boupdate extends calendar_bo
|
||||
{
|
||||
$event['deleted'] = true;
|
||||
$this->save($event);
|
||||
// Actually delete alarms
|
||||
if (isset($event['alarm']) && is_array($event['alarm']))
|
||||
{
|
||||
foreach($event['alarm'] as $id => $alarm)
|
||||
{
|
||||
$this->delete_alarm($id);
|
||||
}
|
||||
}
|
||||
}
|
||||
$GLOBALS['egw']->contenthistory->updateTimeStamp('calendar',$cal_id,'delete',time());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user