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;