From 687521d60c852143735e28d4520e10a354441d87 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 1 Feb 2016 14:01:43 -0500 Subject: [PATCH] (js) Improve saving of events/tasks --- UI/WebServerResources/js/Scheduler/Component.service.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 8598192d1..e63afab8d 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -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)) {