From fa4ea0ff4de828cabcebeb1c383820ad92a10969 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 13 May 2022 00:09:10 +0800 Subject: [PATCH] * Fix bug#22409. --- module/execution/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/execution/model.php b/module/execution/model.php index 5296c17f03..dde01e78e1 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -702,6 +702,8 @@ class executionModel extends model foreach($executions as $executionID => $execution) { + if(isset($execution->status) and in_array($execution->status, array('done', 'closed', 'suspended'))) $this->computeBurn($executionID); + $oldExecution = $oldExecutions[$executionID]; $team = $this->loadModel('user')->getTeamMemberPairs($executionID, 'execution'); $projectID = isset($execution->project) ? $execution->project : $oldExecution->project;