Merge branch 'fixbugs_zhouxin_21801' into 'master'

* Fix bug #21801.

See merge request easycorp/zentaopms!2969
This commit is contained in:
孙广明
2022-04-15 07:42:23 +00:00
+1 -1
View File
@@ -216,7 +216,7 @@ class testcase extends control
$this->view->browseType = $browseType;
$this->view->param = $param;
$this->view->cases = $cases;
$this->view->branch = $product->type == 'normal' ? 0 : $branch;
$this->view->branch = !empty($product) and $product->type != 'normal' ? $branch : 0;
$this->view->branchOption = $branchOption;
$this->view->branchTagOption = $branchTagOption;
$this->view->suiteList = $this->loadModel('testsuite')->getSuites($productID);