mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
delete exceptions too if a series of events get deleted by the GUI to avoid orphaned events. Same behaviour like we already have in future 1.6.003
This commit is contained in:
parent
fb16385a8d
commit
3a0cf6bc29
@ -574,6 +574,15 @@ class calendar_uiforms extends calendar_ui
|
||||
case 'delete':
|
||||
if ($this->bo->delete($event['id'],(int)$content['edit_single']))
|
||||
{
|
||||
if ($content['reference'] == 0 && !$content['edit_single'])
|
||||
{
|
||||
// We delete a whole series
|
||||
$recur_exceptions = $this->bo->so->get_related($event['uid']);
|
||||
foreach ($recur_exceptions as $id)
|
||||
{
|
||||
$this->bo->delete($id);
|
||||
}
|
||||
}
|
||||
$msg = lang('Event deleted');
|
||||
$js = 'opener.location.href=\''.addslashes(egw::link($referer,array(
|
||||
'msg' => $msg,
|
||||
|
Loading…
Reference in New Issue
Block a user