From 85f56d8f74e1252a3e4cfb1ea52c981b406a0bee Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Fri, 26 May 2023 09:57:32 +0800 Subject: [PATCH] * Fix bug #35627. --- module/build/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/build/control.php b/module/build/control.php index e394fc78d9..0892b88b44 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -321,11 +321,12 @@ class build extends control $this->executeHooks($buildID); $branchName = ''; + $this->loadModel('branch'); if($build->productType != 'normal') { foreach(explode(',', $build->branch) as $buildBranch) { - $branchName .= $this->loadModel('branch')->getById($buildBranch); + $branchName .= $buildBranch == 0 ? $this->lang->branch->main : $this->branch->getById($buildBranch); $branchName .= ','; } $branchName = trim($branchName, ',');