This commit is contained in:
songchenxuan
2023-05-16 16:22:41 +08:00
parent fb95bfef17
commit 96f62d0d46
+1 -1
View File
@@ -1674,7 +1674,7 @@ class bugModel extends model
public function processBuildForBugs($bugs) public function processBuildForBugs($bugs)
{ {
$productIdList = array(); $productIdList = array();
foreach($bugs as $bug) $productIdList[$bug->id] = $bug->product; foreach($bugs as $bug) $productIdList[$bug->product] = $bug->product;
$builds = $this->loadModel('build')->getBuildPairs(array_unique($productIdList), 'all', $params = ''); $builds = $this->loadModel('build')->getBuildPairs(array_unique($productIdList), 'all', $params = '');
/* Process the openedBuild and resolvedBuild fields. */ /* Process the openedBuild and resolvedBuild fields. */