mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Task Validation
- Fixed validation bug whereby recurring child tasks inherited the parent status ("recurring") instead of the expected "pending". - Modified 'add' command to code duplicated in Task::validate. - Cleaned up associated bug.period.t unit test.
This commit is contained in:
parent
8e34a02811
commit
b09351c517
6 changed files with 24 additions and 32 deletions
|
@ -996,8 +996,10 @@ void Task::validate ()
|
|||
if (has ("due") &&
|
||||
has ("recur"))
|
||||
{
|
||||
setStatus (Task::recurring);
|
||||
set ("mask", "");
|
||||
if (has ("parent"))
|
||||
setStatus (Task::pending);
|
||||
else
|
||||
setStatus (Task::recurring);
|
||||
}
|
||||
|
||||
// Tasks with a wait: date get a special status.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue