From 3da59cbc7e4754bbc57507e596f6b6af3f12e3c5 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Mon, 4 Apr 2016 16:12:24 -0400 Subject: [PATCH] (js) Fix saving of a custom weekly recurrence --- NEWS | 1 + UI/WebServerResources/js/Scheduler/Component.service.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a628697ea..0783edeff 100644 --- a/NEWS +++ b/NEWS @@ -31,6 +31,7 @@ Bug fixes - [web] fixed handling of mail tags in mail viewer - [web] avoid marking mails as read when archiving a folder (#2792) - [web] fixed crash when sending a message with a special priority + - [web] fixed saving of a custom weekly recurrence definition - [dav] we now handle the default classifications for tasks (#3541) - [eas] properly unfold long mail headers (#3152) - [eas] correctly set EAS message class for S/MIME messages (#3576) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 734cb3e36..90e343ce3 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -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; }