- Task was preventing removal of due date from any task that had a due date,
  which is wrong.  It should be any task with a recur: value and a due date
  (thanks to John Florian).
This commit is contained in:
Paul Beckingham
2010-02-05 18:34:12 -05:00
parent 73d6e05c0e
commit 5567b04277
3 changed files with 17 additions and 2 deletions

View File

@@ -1300,7 +1300,8 @@ 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") &&
if (task->has ("recur") &&
task->has ("due") &&
context.task.has ("due") &&
context.task.get ("due") == "")
throw std::string ("You cannot remove the due date from a recurring task.");