This commit is contained in:
tianshujie
2022-03-30 13:42:39 +08:00
parent 7c97c4ad63
commit be96ca9323
+13
View File
@@ -3420,7 +3420,20 @@ class execution extends control
unset($fields[$key]);
}
$project = $this->project->getByID($projectID);
$executionStats = $this->project->getStats($projectID, $status == 'byproduct' ? 'all' : $status, $productID, 0, 30, 'id_asc');
if(isset($project->model) and $project->model == 'waterfall')
{
$stageList = array();
foreach($executionStats as $stage)
{
$stageList[] = $stage;
foreach($stage->children as $child) $stageList[] = $child;
}
$executionStats = $stageList;
}
$users = $this->loadModel('user')->getPairs('noletter');
foreach($executionStats as $i => $execution)
{