From 6097b535149fe0b5b1619c48676c29555b2d3ddd Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 18 Apr 2022 08:35:55 +0000 Subject: [PATCH] * Fix bug. --- module/testcase/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index 3809d8dbec..85bda938e8 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -216,7 +216,7 @@ class testcase extends control $this->view->browseType = $browseType; $this->view->param = $param; $this->view->cases = $cases; - $this->view->branch = !empty($product) and $product->type != 'normal' ? $branch : 0; + $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);