From dda03577c124e28e2541981328d55b2c9cbc94e4 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 2 Dec 2021 16:55:52 +0800 Subject: [PATCH] * Fix bug #17038. --- 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 2d4ef3170f..096ddb77d9 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1778,7 +1778,7 @@ class testcase extends control $this->view->productID = $productID; $this->view->branch = $branch; $this->view->cases = $this->loadModel('testsuite')->getNotImportedCases($productID, $libID, $orderBy, $pager, $browseType, $queryID); - $this->view->modules = $this->loadModel('tree')->getOptionMenu($productID, 'case', 0, $branch); + $this->view->modules = $this->loadModel('tree')->getOptionMenu($productID, 'case', 0, $branch === 'all' ? 0 : (int)$branch); $this->view->libModules = $this->tree->getOptionMenu($libID, 'caselib'); $this->view->pager = $pager; $this->view->orderBy = $orderBy;