- When a recurrence period is added to a pending task, the status should
  change from pending to recurring, and a mask attribute should be added.
  The lack of those changes meant that "task 1 recur:1w" did not do what
  was expected.  Thanks to T. Charles Yun.
This commit is contained in:
Paul Beckingham 2010-05-22 13:50:20 -04:00
parent 783225cd70
commit a5b57ec2ac
2 changed files with 18 additions and 1 deletions

View file

@ -20,7 +20,9 @@
+ Fixed bug #402 which failed compilation on Arch Linux (thanks to
Johannes Schlatow).
+ Fixed bug #401 that ignored the search.case.sensitive configuration
setting when filtering on project names (thank to John Florian).
setting when filtering on project names (thanks to John Florian).
+ Fixed bug #395 that prevented the upgrade of a pending task to a
recurring task (thanks to T. Charles Yun).
------ old releases ------------------------------

View file

@ -1359,6 +1359,21 @@ int handleModify (std::string &outs)
// A non-zero value forces a file write.
int changes = 0;
// If a task is being made recurring, there are other cascading
// changes.
if (!task->has ("recur") &&
context.task.has ("recur"))
{
other->setStatus (Task::recurring);
other->set ("mask", "");
++changes;
std::cout << "Task "
<< other->id
<< " is now a recurring task."
<< std::endl;
}
// Apply other deltas.
if (deltaDescription (*other))
{