From 74f38571afd37a39838d099dbe8f942563fbd54e Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Fri, 1 Jul 2022 13:54:38 +0800 Subject: [PATCH] * Fix bug of create project when select all branch. --- module/branch/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/branch/control.php b/module/branch/control.php index b42ee63b0c..68ca336f32 100644 --- a/module/branch/control.php +++ b/module/branch/control.php @@ -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'] . ')' : ''));