* Fix bug 16377

This commit is contained in:
songchenxuan
2021-11-18 14:08:21 +08:00
parent 2df3d6aa39
commit 91c8826f45
+4 -4
View File
@@ -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;