* Fix bug for bug #30770.

This commit is contained in:
hufangzhou
2023-02-02 01:08:42 +00:00
parent 59a70a4a00
commit 3d4ae057f3
+1 -1
View File
@@ -331,7 +331,7 @@ class programplanModel extends model
if(isset($stageIndex[$parent]))
{
$stageIndex[$parent]['progress']['totalEstimate'] += $task->estimate;
$stageIndex[$parent]['progress']['totalConsumed'] += $task->consumed;
$stageIndex[$parent]['progress']['totalConsumed'] += $task->parent == '-1' ? 0 : $task->consumed;
$stageIndex[$parent]['progress']['totalReal'] += ($task->left + $task->consumed);
}
}