From 2f619742665ad64d7ddff206952aeb2bd8b2fb2f Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 4 Mar 2024 14:19:58 +0800 Subject: [PATCH] * Fix bug #46482. --- 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 e4146025d3..0e37088f79 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -96,7 +96,7 @@ class testcase extends control $branch = $this->testcaseZen->getBrowseBranch($branch); $browseType = strtolower($browseType); $moduleID = $browseType == 'bymodule' ? $param : 0; - $suiteID = $browseType == 'bysuite' ? $param : ($browseType == 'bymodule' ? ($this->cookie->caseSuite ? $this->cookie->caseSuite : 0) : 0); + $suiteID = $browseType == 'bysuite' ? $param : ($browseType == 'bymodule' ? ($this->cookie->caseSuite ? (int)$this->cookie->caseSuite : 0) : 0); $queryID = $browseType == 'bysearch' ? $param : 0; $this->testcaseZen->setBrowseCookie($productID, $branch, $browseType, (string)$param);