Bug 1492435 - Display the occurrence prompt also for expanded occurrences of a series and not just for recurrence items; r+a=philipp
authorMakeMyDay <makemyday@gmx-topmail.de>
Wed, 19 Sep 2018 14:17:10 +0200
changeset 33921 00c69d598e7a199292872ca3a17d97811e396e00
parent 33920 477d079972c5567475454e9bbfffd35f7d3b8c95
child 33922 6cb2a1aba7f156a166a342826b8c6876b77802ef
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
bugs1492435
Bug 1492435 - Display the occurrence prompt also for expanded occurrences of a series and not just for recurrence items; r+a=philipp
calendar/base/content/calendar-item-editing.js
--- a/calendar/base/content/calendar-item-editing.js
+++ b/calendar/base/content/calendar-item-editing.js
@@ -563,21 +563,16 @@ function promptOccurrenceModification(aI
     let pastItems = [];
     let returnItem = null;
     let type = CANCEL;
     let items = Array.isArray(aItem) ? aItem : [aItem];
 
     // Check if this actually is an instance of a recurring event
     if (items.every(item => item == item.parentItem)) {
         type = MODIFY_PARENT;
-    } else if (items.every(item => item.parentItem.recurrenceInfo.getExceptionFor(item.recurrenceId))) {
-        // If the user wants to edit an occurrence which is already an exception
-        // always edit this single item.
-        // XXX  Why? I think its ok to ask also for exceptions.
-        type = MODIFY_OCCURRENCE;
     } else if (aItem && items.length) {
         // Prompt the user. Setting modal blocks the dialog until it is closed. We
         // use rv to pass our return value.
         let rv = { value: CANCEL, items: items, action: aAction };
         window.openDialog("chrome://calendar/content/calendar-occurrence-prompt.xul",
                           "PromptOccurrenceModification",
                           "centerscreen,chrome,modal,titlebar",
                           rv);