* Finish task #45028.

This commit is contained in:
songchenxuan
2021-11-30 10:57:49 +08:00
parent b3cb90e69e
commit c5deb3e68d
+2 -1
View File
@@ -1720,7 +1720,8 @@ class testcase extends control
$queryID = (int)$queryID;
$product = $this->loadModel('product')->getById($productID);
$branches = array();
if($product->type != 'normal') $branches = array('0' => $this->lang->branch->main) + $this->loadModel('branch')->getPairs($productID, '', $projectID);
if($product->type != 'normal') $branches = $this->loadModel('branch')->getPairs($productID, '', $projectID);
if(!in_array($this->lang->branch->main, $branches)) $branches = array('0' => $this->lang->branch->main) + $branches;
if($_POST)
{