* Just modify function to ensure page can load.

This commit is contained in:
songchenxuan
2023-05-08 20:35:13 +08:00
parent eae49a4f32
commit 2586fa9717
+3 -3
View File
@@ -102,7 +102,7 @@ class bug extends control
{
$this->loadModel('datatable');
$productID = $this->product->saveState($productID, $this->products);
$productID = $this->product->saveVisitState($productID, $this->products);
$product = $this->product->getById($productID);
if($product->type != 'normal')
{
@@ -375,7 +375,7 @@ class bug extends control
$this->bugZen->setMenu4Create($productID, $branch, $output);
$productID = $this->product->saveState($productID, $this->products);
$productID = $this->product->saveVisitState($productID, $this->products);
$currentProduct = $this->product->getById($productID);
if($branch === '') $branch = (int)$this->cookie->preBranch;
@@ -521,7 +521,7 @@ class bug extends control
}
/* Get product, then set menu. */
$productID = $this->product->saveState($productID, $this->products);
$productID = $this->product->saveVisitState($productID, $this->products);
if($branch === '') $branch = (int)$this->cookie->preBranch;
$this->qa->setMenu($this->products, $productID, $branch);