mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
check for cal_reference == 0 too when deleting a whole series. Otherwise all exceptions of an event will be deleted when just one exception was initially re-edited for deletion.
This commit is contained in:
parent
9989afab6c
commit
e7ca065e74
@ -716,9 +716,9 @@ class calendar_uiforms extends calendar_ui
|
||||
case 'delete':
|
||||
if ($this->bo->delete($event['id'],(int)$content['edit_single']))
|
||||
{
|
||||
if (!$content['edit_single'])
|
||||
if ($content['reference'] == 0 && !$content['edit_single'])
|
||||
{
|
||||
// We may delete a whole series
|
||||
// We delete a whole series
|
||||
$recur_exceptions = $this->bo->so->get_related($event['uid']);
|
||||
foreach ($recur_exceptions as $id => $recur_date)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user