* adjust code.

This commit is contained in:
王怡栋
2022-11-16 17:09:07 +08:00
parent f4452f6d04
commit 0fdbf58dc9
+1 -1
View File
@@ -1972,7 +1972,7 @@ class bugModel extends model
$builds = $this->dao->select('*')->from(TABLE_BUILD)->where('id')->in($build)->fetchAll('id');
$executionIdList = array();
foreach($builds as $build) $executionIdList[$build->execution] = empty($build->execution) ? $build->project : $build->execution;
foreach($builds as $build) $executionIdList[] = empty($build->execution) ? $build->project : $build->execution;
$executionIdList = array_unique($executionIdList);
if(empty($executionIdList)) return array();