mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix
- Fixed bug found by John Florian that fails to delete all recurring tasks, after task has confirmed that is what is wanted.
This commit is contained in:
parent
e8716e68ae
commit
75054617c4
1 changed files with 3 additions and 2 deletions
|
@ -535,6 +535,7 @@ std::string handleDelete ()
|
|||
context.tdb.loadPending (tasks, context.filter);
|
||||
|
||||
// Filter sequence.
|
||||
std::vector <Task> all = tasks;
|
||||
context.filter.applySequence (tasks, context.sequence);
|
||||
|
||||
// Determine the end date.
|
||||
|
@ -561,7 +562,7 @@ std::string handleDelete ()
|
|||
{
|
||||
// Scan all pending tasks for siblings of this task, and the parent
|
||||
// itself, and delete them.
|
||||
foreach (sibling, tasks)
|
||||
foreach (sibling, all)
|
||||
{
|
||||
if (sibling->get ("parent") == parent ||
|
||||
sibling->get ("uuid") == parent)
|
||||
|
@ -584,7 +585,7 @@ std::string handleDelete ()
|
|||
{
|
||||
// Update mask in parent.
|
||||
task->setStatus (Task::deleted);
|
||||
updateRecurrenceMask (tasks, *task);
|
||||
updateRecurrenceMask (all, *task);
|
||||
|
||||
task->set ("end", endTime);
|
||||
context.tdb.update (*task);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue