Merge branch 'master_xieqiyu_fixbug' into 'master'
* Fix bug of create project when select all branch. See merge request easycorp/zentaopms!4470
This commit is contained in:
@@ -274,7 +274,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'] . ')' : ''));
|
||||
|
||||
Reference in New Issue
Block a user