Delete alarms even if event is not really deleted

This commit is contained in:
Nathan Gray 2010-05-28 07:24:34 +00:00
parent d755693944
commit eeeebb5197

View File

@ -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());