* Code for task#78668. Add trim.

This commit is contained in:
xieqiyu
2022-12-07 11:25:41 +08:00
parent afe9d49024
commit a2d2c55e94
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1312,7 +1312,7 @@ class execution extends control
{
$showBranch = true;
$branchPairs = $branchGroups[$build->product];
foreach(explode(',', $build->branch) as $branchID) $build->branchName .= "{$branchPairs[$branchID]},";
foreach(explode(',', trim($build->branch, ',')) as $branchID) $build->branchName .= "{$branchPairs[$branchID]},";
$build->branchName = trim($build->branchName, ',');
}
}
+1 -1
View File
@@ -1466,7 +1466,7 @@ class project extends control
{
$showBranch = true;
$branchPairs = $branchGroups[$build->product];
foreach(explode(',', $build->branch) as $branchID) $build->branchName .= "{$branchPairs[$branchID]},";
foreach(explode(',', trim($build->branch, ',')) as $branchID) $build->branchName .= "{$branchPairs[$branchID]},";
$build->branchName = trim($build->branchName, ',');
}
}