This commit is contained in:
mayue
2021-11-18 15:07:42 +08:00
parent 49b3b22630
commit c26fb97685
+8 -2
View File
@@ -1080,8 +1080,14 @@ class project extends control
foreach($builds as $build)
{
/* If product is normal, unset branch name. */
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;
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;
}
$projectBuilds[$build->product][] = $build;
}