diff --git a/module/bug/control.php b/module/bug/control.php index 777ba3f02f..4c291bcd50 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -512,7 +512,7 @@ class bug extends control } else { - $branches = (isset($product->type) and $product->type != 'normal') ? $this->loadModel('branch')->getPairs($productID, 'active') : array(); + $branches = $productInfo->type != 'normal' ? $this->loadModel('branch')->getPairs($productID, 'active') : array(); } /* Replace the value of bug that needs to be replaced with the value of the object that is transferred to bug. */