(js) Fix saving of a custom weekly recurrence

This commit is contained in:
Francis Lachapelle
2016-04-04 16:12:24 -04:00
parent d4c58f4f23
commit 3da59cbc7e
2 changed files with 3 additions and 1 deletions

View File

@@ -1076,7 +1076,8 @@
delete component.repeat.monthdays;
component.repeat.days = [{ day: this.repeat.month.day, occurrence: this.repeat.month.occurrence.toString() }];
}
else if (this.repeat.month.type) {
else if ((this.repeat.frequency == 'monthly' || this.repeat.frequency == 'yearly') &&
this.repeat.month.type) {
// montly recurrence by month days or yearly by month
delete component.repeat.days;
}