From f69af0f62cabc86dcc3f62ff12d92fa090a2a6f5 Mon Sep 17 00:00:00 2001 From: liuyongkai Date: Thu, 9 Mar 2023 09:50:51 +0800 Subject: [PATCH] * Fix undefined variable. --- module/bug/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/control.php b/module/bug/control.php index a838c93eb8..9c3cbe038f 100755 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -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]);