TW-1460
- Display error for empty due: attribute when adding recurring tasks. - Prevent endless loop for tasks that have an empty due: attribute.
This commit is contained in:
committed by
Paul Beckingham
parent
7422a76153
commit
00b15ca407
@@ -1451,7 +1451,7 @@ void Task::validate (bool applyDefault /* = true */)
|
||||
throw std::string (STRING_TASK_VALID_BLANK);
|
||||
|
||||
// Cannot have a recur frequency with no due date - when would it recur?
|
||||
if (! has ("due") && has ("recur"))
|
||||
if (has ("recur") && (! has ("due") || get ("due") == ""))
|
||||
throw std::string (STRING_TASK_VALID_REC_DUE);
|
||||
|
||||
// Recur durations must be valid.
|
||||
|
||||
Reference in New Issue
Block a user