From 21dd03eb815c295b14e8d97019413690af910f0a Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 3 Nov 2016 11:48:48 -0400 Subject: [PATCH] (js) Improve reset of a reccurent component --- UI/WebServerResources/js/Scheduler/Component.service.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index c0821211a..2ff2045fc 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -579,7 +579,8 @@ this.repeat.end = 'count'; else if (this.repeat.until) { this.repeat.end = 'until'; - this.repeat.until = Component.$parseDate(this.repeat.until, { no_time: true }); + if (angular.isString(this.repeat.until)) + this.repeat.until = Component.$parseDate(this.repeat.until, { no_time: true }); } else this.repeat.end = 'never';