From 839ee66e7755783115982bab4c8c16b7823449f3 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Wed, 1 Dec 2021 13:41:01 +0800 Subject: [PATCH] * Finish task #45039. --- module/execution/control.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/module/execution/control.php b/module/execution/control.php index 30704b1ab6..d84c003087 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1047,12 +1047,20 @@ class execution extends control /* Set execution builds. */ $executionBuilds = array(); $productList = $this->product->getProducts($executionID); + $this->app->loadLang('branch'); if(!empty($builds)) { foreach($builds as $build) { /* If product is normal, unset branch name. */ - if(isset($productList[$build->product]) and $productList[$build->product]->type == 'normal') $build->branchName = ''; + if(isset($productList[$build->product]) and $productList[$build->product]->type == 'normal') + { + $build->branchName = ''; + } + else + { + $build->branchName = isset($build->branchName) ? $build->branchName : $this->lang->branch->main; + } $executionBuilds[$build->product][] = $build; } }