From 6038b69ea4b23f8ed7cda3a24239db43c36843e3 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Thu, 8 Dec 2022 13:31:00 +0800 Subject: [PATCH] * Fix bug#30651. --- module/project/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/project/control.php b/module/project/control.php index 3bdd635c89..66c27f9ae7 100755 --- a/module/project/control.php +++ b/module/project/control.php @@ -1471,6 +1471,8 @@ class project extends control if(isset($branchPairs[$branchID])) $build->branchName .= "{$branchPairs[$branchID]},"; } $build->branchName = trim($build->branchName, ','); + + if(empty($build->branchName) and empty($build->builds)) $build->branchName = $this->lang->branch->main; } } }