mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Fix delete of series did not work
This commit is contained in:
parent
7c944b5aeb
commit
98c18b04ec
@ -968,12 +968,10 @@ foreach($recur_event as $_k => $_v) error_log($_k . ': ' . array2string($_v));
|
||||
}
|
||||
break;
|
||||
|
||||
case 'delete': // delete of regular event
|
||||
case 'delete_keep_exceptions': // series and user selected to keep the exceptions
|
||||
case 'delete_exceptions': // series and user selected to delete the exceptions too
|
||||
case 'delete': // delete of event (regular or series)
|
||||
$exceptions_kept = null;
|
||||
if ($this->bo->delete($event['id'], (int)$content['edit_single'], false, $event['no_notifications'],
|
||||
$button == 'delete_exceptions', $exceptions_kept))
|
||||
$content['delete_exceptions'] == 'true', $exceptions_kept))
|
||||
{
|
||||
if ($event['recur_type'] != MCAL_RECUR_NONE && $content['reference'] == 0 && !$content['edit_single'])
|
||||
{
|
||||
|
@ -1013,7 +1013,8 @@ app.classes.calendar = AppJS.extend(
|
||||
{
|
||||
if (_button_id != 'dialog[cancel]')
|
||||
{
|
||||
self.et2._inst.submit(_button_id);
|
||||
widget.getRoot().getWidgetById('delete_exceptions').set_value(_button_id == 'button[delete_exceptions]');
|
||||
widget.getInstanceManager().submit('button[delete]');
|
||||
return true;
|
||||
}
|
||||
else
|
||||
|
@ -318,6 +318,7 @@
|
||||
</menulist>
|
||||
<checkbox label="Do not notify" id="no_notifications"/>
|
||||
<button align="right" statustext="Delete this event" label="Delete" id="button[delete]" onclick="app.calendar.delete_btn(widget,$cont[query_delete_exceptions]);" image="delete" background_image="1"/>
|
||||
<textbox type="hidden" id="delete_exceptions"/>
|
||||
</hbox>
|
||||
</template>
|
||||
</overlay>
|
||||
|
Loading…
Reference in New Issue
Block a user