* Fix bug of task #59477.

This commit is contained in:
liumengyi
2022-07-06 09:51:14 +08:00
parent 45183de128
commit 625d04ff6f
+1
View File
@@ -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);