TW-1581: Wrong urgency after done/delete command
- TDB2::dependency_scan() is run before GC, so we need to check both tasks in a dependency chain for their status before setting the blocking/blocked flag to true.
This commit is contained in:
@@ -3,6 +3,9 @@
|
|||||||
- TW-1578 Bash tab completion problems on first run
|
- TW-1578 Bash tab completion problems on first run
|
||||||
(thanks to Renato Alves and Ptolemarch).
|
(thanks to Renato Alves and Ptolemarch).
|
||||||
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).
|
- TW-1580 "modified" attribute no longer updated (thanks to David Patrick).
|
||||||
|
- TW-1581 Tasks with dependencies show wrong urgency values for the first
|
||||||
|
report run after a task in the dependency chain is completed/deleted (thanks
|
||||||
|
to Ulf Eliasson).
|
||||||
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
|
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
|
||||||
amount of changes that is considered dangerous (thanks to Tomas Babej).
|
amount of changes that is considered dangerous (thanks to Tomas Babej).
|
||||||
|
|
||||||
|
|||||||
10
src/TDB2.cpp
10
src/TDB2.cpp
@@ -462,9 +462,13 @@ void TF2::dependency_scan ()
|
|||||||
{
|
{
|
||||||
if (right->get ("uuid") == *d)
|
if (right->get ("uuid") == *d)
|
||||||
{
|
{
|
||||||
Task::status status = right->getStatus ();
|
// GC hasn't run yet, check both tasks for their current status
|
||||||
if (status != Task::completed &&
|
Task::status lstatus = left->getStatus ();
|
||||||
status != Task::deleted)
|
Task::status rstatus = right->getStatus ();
|
||||||
|
if (lstatus != Task::completed &&
|
||||||
|
lstatus != Task::deleted &&
|
||||||
|
rstatus != Task::completed &&
|
||||||
|
rstatus != Task::deleted)
|
||||||
{
|
{
|
||||||
left->is_blocked = true;
|
left->is_blocked = true;
|
||||||
right->is_blocking = true;
|
right->is_blocking = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user