Append new attendee on iTip Replies + consider sequence numbers

This commit is contained in:
Thomas Bruederli 2013-11-06 13:00:55 +01:00
parent 387db8ea1a
commit 2775d7091e

View file

@ -2132,8 +2132,8 @@ class calendar extends rcube_plugin
$success = $this->driver->edit_event($existing);
}
// update the entire attendees block
else if ($event['changed'] >= $existing['changed'] && $event['attendees']) {
$existing['attendees'] = $event['attendees'];
else if (($event['sequence'] >= $existing['sequence'] || $event['changed'] >= $existing['changed']) && $event_attendee) {
$existing['attendees'][] = $event_attendee;
$success = $this->driver->edit_event($existing);
}
else {