Set savemode to 'current' for recurrence exceptions (#1725)
This commit is contained in:
parent
db055e29c7
commit
c077ed555f
2 changed files with 2 additions and 1 deletions
|
@ -523,7 +523,7 @@ function rcube_calendar_ui(settings)
|
|||
|
||||
// show warning if editing a recurring event
|
||||
if (event.id && event.recurrence) {
|
||||
var sel = event.thisandfuture ? 'future' : 'all';
|
||||
var sel = event.thisandfuture ? 'future' : (event.isexception ? 'current' : 'all');
|
||||
$('#edit-recurring-warning').show();
|
||||
$('input.edit-recurring-savemode[value="'+sel+'"]').prop('checked', true);
|
||||
}
|
||||
|
|
|
@ -434,6 +434,7 @@ class kolab_calendar
|
|||
$rec_event['recurrence_id'] = $event['uid'];
|
||||
$rec_event['recurrence'] = $recurrence_rule;
|
||||
$rec_event['_instance'] = $i;
|
||||
$rec_event['isexception'] = 1;
|
||||
$events[] = $rec_event;
|
||||
|
||||
// found the specifically requested instance, exiting...
|
||||
|
|
Loading…
Add table
Reference in a new issue