From 7f1e5177542c5251a753d34a6f5d2119e802a9bd Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 30 Aug 2011 00:15:40 -0400 Subject: [PATCH] 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. --- src/commands/CmdBurndown.cpp | 9 +++------ src/commands/CmdCount.cpp | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/commands/CmdBurndown.cpp b/src/commands/CmdBurndown.cpp index cf718990e..ef11f4b85 100644 --- a/src/commands/CmdBurndown.cpp +++ b/src/commands/CmdBurndown.cpp @@ -945,10 +945,9 @@ int CmdBurndownMonthly::execute (std::string& output) // Scan the pending tasks, applying any filter. handleRecurrence (); - - // Apply filter. std::vector filtered; filter (filtered); + context.tdb2.commit (); // Create a chart, scan the tasks, then render. Chart chart ('M'); @@ -984,10 +983,9 @@ int CmdBurndownWeekly::execute (std::string& output) // Scan the pending tasks, applying any filter. handleRecurrence (); - - // Apply filter. std::vector filtered; filter (filtered); + context.tdb2.commit (); // Create a chart, scan the tasks, then render. Chart chart ('W'); @@ -1023,10 +1021,9 @@ int CmdBurndownDaily::execute (std::string& output) // Scan the pending tasks, applying any filter. handleRecurrence (); - - // Apply filter. std::vector filtered; filter (filtered); + context.tdb2.commit (); // Create a chart, scan the tasks, then render. Chart chart ('D'); diff --git a/src/commands/CmdCount.cpp b/src/commands/CmdCount.cpp index d090578b8..9ef9a78ae 100644 --- a/src/commands/CmdCount.cpp +++ b/src/commands/CmdCount.cpp @@ -52,6 +52,7 @@ int CmdCount::execute (std::string& output) handleRecurrence (); std::vector filtered; filter (filtered); + context.tdb2.commit (); // Find number of matching tasks. Skip recurring parent tasks. int count = 0;