#1306: Fix the reset after stopping a recurrence

This commit is contained in:
Fabrice Mouhartem 2023-11-06 16:56:09 +01:00
parent c354abb1e2
commit 55c3a5584b
1 changed files with 8 additions and 1 deletions

View File

@ -896,7 +896,14 @@ define([
if (['one','from'].includes(type.which) && !data.rawData.isOrigin) {
cleanAfter(type.when);
} else {
update = ev.recUpdate = RECUPDATE;
if (changes.recurrenceRule.until) {
// Remove changes after the last iteration
cleanAfter(changes.recurrenceRule.until);
}
if (changes.recurrenceRule === "") {
// Reset special cases when removing recurrence
update = ev.recUpdate = RECUPDATE;
}
}
}