From 625d04ff6fa1f9679af0cb04f1085209201560ad Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 6 Jul 2022 09:51:14 +0800 Subject: [PATCH] * Fix bug of task #59477. --- module/testcase/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/testcase/control.php b/module/testcase/control.php index a62582efda..88e7b1853b 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1856,6 +1856,7 @@ class testcase extends control $queryID = (int)$queryID; $product = $this->loadModel('product')->getById($productID); $branches = array(); + if($branch == '') $branch = 0; $this->loadModel('branch'); if($product->type != 'normal') $branches = array(BRANCH_MAIN => $this->lang->branch->main) + $this->branch->getPairs($productID, 'active', $projectID);