Bug Fix - #327 Deleting due date on recurring task wraps to 1969

- Task now prevents removal of either a due date or a recurrence
  from a recurring task.
This commit is contained in:
Paul Beckingham
2009-11-28 09:53:15 -05:00
parent b7726bce21
commit b5f65850f8
3 changed files with 77 additions and 0 deletions

View File

@@ -950,6 +950,15 @@ 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"))
throw std::string ("You cannot remove the due date from a recurring task.");
if (task->has ("recur") &&
!context.task.has ("recur"))
throw std::string ("You cannot remove the recurrence from a recurring task.");
// Make all changes.
foreach (other, all)
{