(js) Improve saving of events/tasks

pull/195/head
Francis Lachapelle 2016-02-01 14:01:43 -05:00
parent b09e7163dd
commit 687521d60c
1 changed files with 6 additions and 1 deletions

View File

@ -1058,7 +1058,7 @@
delete component.repeat.days;
}
}
else if (this.repeat.frequency) {
else if (this.repeat.frequency && this.repeat.frequency != 'never') {
component.repeat = { frequency: this.repeat.frequency };
}
if (this.repeat.frequency) {
@ -1075,6 +1075,11 @@
delete component.repeat;
}
// Check status
if (this.status == 'not-specified')
delete component.status;
// Verify alarm
if (this.$hasAlarm) {
if (this.alarm.action && this.alarm.action == 'email' &&
!(this.attendees && this.attendees.length > 0)) {