* Fix undefined variable.

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