Don't send iTip requests when an attendee moves/resizes an event (Bifrost#T195055)

Also display "You are about to make changes ... only be reflected on your calendar " warning.
This commit is contained in:
Aleksander Machniak 2019-03-28 15:18:44 +00:00
parent 54d171e10f
commit 54851bbc6b
2 changed files with 4 additions and 5 deletions

View file

@ -918,10 +918,6 @@ class calendar extends rcube_plugin
$event = rcube_utils::get_input_value('e', rcube_utils::INPUT_POST, true);
$success = $reload = $got_msg = false;
// force notify if hidden + active
if ((int)$this->rc->config->get('calendar_itip_send_option', $this->defaults['calendar_itip_send_option']) === 1)
$event['_notify'] = 1;
// read old event data in order to find changes
if (($event['_notify'] || $event['_decline']) && $action != 'new') {
$old = $this->driver->get_event($event);

View file

@ -2620,6 +2620,10 @@ function rcube_calendar_ui(settings)
data._notify = settings.itip_notify;
}
}
else if (cal.group != 'shared') {
html += '<div class="message dialog-message ui alert boxwarning">' + $('#edit-localchanges-warning').html() + '</div>';
data._notify = 0;
}
}
// recurring event: user needs to select the savemode
@ -2647,7 +2651,6 @@ function rcube_calendar_ui(settings)
$dialog.find('a.button').button().filter(':not(.disabled)').click(function(e) {
data._savemode = String(this.href).replace(/.+#/, '');
data._notify = settings.itip_notify;
// open event edit dialog when saving as new
if (data._savemode == 'new') {