From 49e8ec4d49edc4113f26f1cce8a95cd4d66596f2 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Wed, 8 Nov 2023 09:33:27 +0800 Subject: [PATCH] * Merge 96f62d0d46, fix bug #35261. --- module/bug/model.php | 2 +- module/execution/model.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/bug/model.php b/module/bug/model.php index 675b4ce7ac..ae0c4226f1 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -768,7 +768,7 @@ class bugModel extends model public function processBuildForBugs(array $bugs): 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 = ''); /* Process the openedBuild and resolvedBuild fields. */ diff --git a/module/execution/model.php b/module/execution/model.php index 245b0af6dc..2f176fbd1a 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -3475,7 +3475,7 @@ class executionModel extends model /* Unset burn information that is greater than the execution end date. */ foreach($executionBurnList as $date => $burnInfo) { - if($date > $end) unset($executionBurns[$date]); + if($date > $end) unset($executionBurnList[$date]); } $executionBurnList = $this->processBurnData($executionBurnList, $this->config->execution->defaultBurnPeriod, $begin, $end);