From 96f62d0d46bf0a3b2a7e4886759aa55ae9c65931 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 16 May 2023 16:22:41 +0800 Subject: [PATCH] * Fix bug #35261. --- module/bug/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/model.php b/module/bug/model.php index 52fb65fd8f..bc68e38ffd 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -1674,7 +1674,7 @@ class bugModel extends model public function processBuildForBugs($bugs) { $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 = ''); /* Process the openedBuild and resolvedBuild fields. */