* Fix bug of create project when select all branch.

This commit is contained in:
xieqiyu
2022-07-01 13:54:38 +08:00
parent 190890790a
commit 74f38571af
+1 -1
View File
@@ -271,7 +271,7 @@ class branch extends control
{
$branchTagOption[$branchInfo->id] = $branchInfo->name . ($branchInfo->status == 'closed' ? ' (' . $this->lang->branch->statusList['closed'] . ')' : '');
}
if(!isset($branchTagOption[$oldBranch]))
if(is_numeric($oldBranch) and !isset($branchTagOption[$oldBranch]))
{
$branch = $this->branch->getById($oldBranch, $productID, '');
$branchTagOption[$oldBranch] = $oldBranch == BRANCH_MAIN ? $branch : ($branch->name . ($branch->status == 'closed' ? ' (' . $this->lang->branch->statusList['closed'] . ')' : ''));