* Fix bug 16377
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user