From 91c8826f45e1329f71f5230769e307ff41de38da Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Thu, 18 Nov 2021 14:08:21 +0800 Subject: [PATCH] * Fix bug 16377 --- module/bug/control.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/bug/control.php b/module/bug/control.php index 0f9d9f0fbb..9570dd8737 100644 --- a/module/bug/control.php +++ b/module/bug/control.php @@ -433,10 +433,10 @@ class bug extends control } /* Get product, then set menu. */ - $productID = $this->product->saveState($productID, $this->products); - $product = $this->product->getById($productID); + $productID = $this->product->saveState($productID, $this->products); + $productInfo = $this->product->getById($productID); if($branch === '') $branch = (int)$this->cookie->preBranch; - $branches = $product->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($productID); + $branches = $productInfo->type == 'normal' ? array() : $this->loadModel('branch')->getPairs($productID); /* Init vars. */ $projectID = 0; @@ -631,7 +631,7 @@ class bug extends control $this->view->keywords = $keywords; $this->view->severity = $severity; $this->view->type = $type; - $this->view->product = $product; + $this->view->productInfo = $productInfo; $this->view->branch = $branch; $this->view->branches = $branches; $this->view->blockID = $blockID;