mirror of https://github.com/xwiki-labs/cryptpad
#1306: Fix the reset after stopping a recurrence
This commit is contained in:
parent
c354abb1e2
commit
55c3a5584b
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue