* Fix undefined variable.

This commit is contained in:
liuyongkai
2023-03-09 09:50:51 +08:00
parent a71560aa80
commit f69af0f62c
+1 -1
View File
@@ -2500,7 +2500,7 @@ class bug extends control
public function ajaxGetProductBugs($productID, $bugID)
{
$product = $this->loadModel('product')->getById($productID);
$bug = $this->getById($bugID);
$bug = $this->bug->getById($bugID);
$branch = $product->type == 'branch' ? ($bug->branch > 0 ? $bug->branch . ',0' : '0') : '';
$productBugs = $this->bug->getProductBugPairs($productID, $branch);
unset($productBugs[$bugID]);