From ca8d24fe37cb533eaa37654b7beb913515b9ff3a Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Thu, 14 Dec 2023 15:49:07 +0800 Subject: [PATCH] * Fix bug #41536. --- 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 53d3c7f65e..874b52a50e 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -263,7 +263,7 @@ class testcase extends control /* 设置产品id和分支。 */ /* Set productID and branch. */ $productID = $this->product->checkAccess($productID, $this->products); - if($branch === '') $branch = $this->cookie->preBranch; + if($branch === '') $branch = $this->cookie->preBranch ? : ''; $moduleID = $this->testcaseZen->assignCreateVars($productID, $branch, $moduleID, $from, $param, $storyID);