mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Bug
- Added missing TDB2::commit call to commands that handleRecurrence. The missing commit would have meant no updates to the data when recurring tasks are generated.
This commit is contained in:
parent
32164680ab
commit
7f1e517754
2 changed files with 4 additions and 6 deletions
|
@ -945,10 +945,9 @@ int CmdBurndownMonthly::execute (std::string& output)
|
||||||
|
|
||||||
// Scan the pending tasks, applying any filter.
|
// Scan the pending tasks, applying any filter.
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
|
|
||||||
// Apply filter.
|
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (filtered);
|
filter (filtered);
|
||||||
|
context.tdb2.commit ();
|
||||||
|
|
||||||
// Create a chart, scan the tasks, then render.
|
// Create a chart, scan the tasks, then render.
|
||||||
Chart chart ('M');
|
Chart chart ('M');
|
||||||
|
@ -984,10 +983,9 @@ int CmdBurndownWeekly::execute (std::string& output)
|
||||||
|
|
||||||
// Scan the pending tasks, applying any filter.
|
// Scan the pending tasks, applying any filter.
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
|
|
||||||
// Apply filter.
|
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (filtered);
|
filter (filtered);
|
||||||
|
context.tdb2.commit ();
|
||||||
|
|
||||||
// Create a chart, scan the tasks, then render.
|
// Create a chart, scan the tasks, then render.
|
||||||
Chart chart ('W');
|
Chart chart ('W');
|
||||||
|
@ -1023,10 +1021,9 @@ int CmdBurndownDaily::execute (std::string& output)
|
||||||
|
|
||||||
// Scan the pending tasks, applying any filter.
|
// Scan the pending tasks, applying any filter.
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
|
|
||||||
// Apply filter.
|
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (filtered);
|
filter (filtered);
|
||||||
|
context.tdb2.commit ();
|
||||||
|
|
||||||
// Create a chart, scan the tasks, then render.
|
// Create a chart, scan the tasks, then render.
|
||||||
Chart chart ('D');
|
Chart chart ('D');
|
||||||
|
|
|
@ -52,6 +52,7 @@ int CmdCount::execute (std::string& output)
|
||||||
handleRecurrence ();
|
handleRecurrence ();
|
||||||
std::vector <Task> filtered;
|
std::vector <Task> filtered;
|
||||||
filter (filtered);
|
filter (filtered);
|
||||||
|
context.tdb2.commit ();
|
||||||
|
|
||||||
// Find number of matching tasks. Skip recurring parent tasks.
|
// Find number of matching tasks. Skip recurring parent tasks.
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue