From c718804f36ca3fc5bce25d26be761b524a6cf81b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 16 Jun 2017 15:37:14 +0000 Subject: [PATCH] Fix recognizing an organizer in event delete confirmation dialog It caused that an organizer was presented with "decline invitation" instead of "notify attendees" option. --- plugins/calendar/calendar_ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index 20d96bb2..60edb7e2 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -2558,7 +2558,7 @@ function rcube_calendar_ui(settings) if (_has_attendees) { var checked = (settings.itip_notify & 1 ? ' checked="checked"' : ''); - if (action == 'remove' && cal.group != 'shared' && is_attendee(event)) { + if (action == 'remove' && cal.group != 'shared' && !_is_organizer && is_attendee(event)) { decline = true; checked = event.status != 'CANCELLED' ? checked : ''; html += '
' +