diff --git a/module/bug/control.php b/module/bug/control.php index 4e22536a39..00cddd83c6 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -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]);