From 0fdbf58dc900a0e4f52cd55122126d4e1845e346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Wed, 16 Nov 2022 17:09:07 +0800 Subject: [PATCH] * adjust code. --- 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 936a3766fe..657b2ae145 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -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();