Fix saving task with reminder related to due date

pull/229/merge
Francis Lachapelle 2018-08-22 14:07:10 -04:00
parent 90187876bf
commit 9f654d223b
2 changed files with 14 additions and 13 deletions

1
NEWS
View File

@ -17,6 +17,7 @@ Bug fixes
- [web] enable save button when editing the members of a list - [web] enable save button when editing the members of a list
- [web] restore caret position when replying or forwarding a message (#4517) - [web] restore caret position when replying or forwarding a message (#4517)
- [web] localized special mailboxes names in filter editor - [web] localized special mailboxes names in filter editor
- [web] fixed saving task with reminder based on due date
4.0.1 (2018-07-10) 4.0.1 (2018-07-10)
------------------ ------------------

View File

@ -132,10 +132,7 @@
if (startDate) if (startDate)
[self setStartDate: startDate]; [self setStartDate: startDate];
else else
{
[self setStartDate: nil]; [self setStartDate: nil];
[self removeAllAlarms];
}
// Handle due date // Handle due date
isAllDayDueDate = YES; isAllDayDueDate = YES;
@ -158,6 +155,9 @@
else else
[self setDue: nil]; [self setDue: nil];
if (!startDate && !dueDate)
[self removeAllAlarms];
// Handle time zone // Handle time zone
todoStartDate = (iCalDateTime *)[self uniqueChildWithTag: @"dtstart"]; todoStartDate = (iCalDateTime *)[self uniqueChildWithTag: @"dtstart"];
todoDueDate = (iCalDateTime *)[self uniqueChildWithTag: @"due"]; todoDueDate = (iCalDateTime *)[self uniqueChildWithTag: @"due"];