Merge branch '1.9.0' of tasktools.org:task into 1.9.0
This commit is contained in:
@@ -1153,13 +1153,14 @@ int handleModify (std::string &outs)
|
||||
!task->has ("recur"))
|
||||
throw std::string ("You cannot specify an until date for a non-recurring task.");
|
||||
|
||||
if (task->has ("due") &&
|
||||
!context.task.has ("due") &&
|
||||
context.task.has ("recur"))
|
||||
if (task->has ("due") &&
|
||||
context.task.has ("due") &&
|
||||
context.task.get ("due") == "")
|
||||
throw std::string ("You cannot remove the due date from a recurring task.");
|
||||
|
||||
if (task->has ("recur") &&
|
||||
!context.task.has ("recur"))
|
||||
if (task->has ("recur") &&
|
||||
context.task.has ("recur") &&
|
||||
context.task.get ("recur") == "")
|
||||
throw std::string ("You cannot remove the recurrence from a recurring task.");
|
||||
|
||||
// Make all changes.
|
||||
|
||||
Reference in New Issue
Block a user