* Fix bug #41563, reset preBranch if current product and previous prodcut is not the same.
This commit is contained in:
@@ -1311,8 +1311,6 @@ class productModel extends model
|
||||
|
||||
$this->session->set('product', $productID, $this->app->tab);
|
||||
|
||||
helper::setcookie('preProductID', (string)$productID);
|
||||
|
||||
/* If preProductID changed, then reset preBranch. */
|
||||
if($this->cookie->preProductID != $this->session->product)
|
||||
{
|
||||
@@ -1320,6 +1318,8 @@ class productModel extends model
|
||||
helper::setcookie('preBranch', '0');
|
||||
}
|
||||
|
||||
helper::setcookie('preProductID', (string)$productID);
|
||||
|
||||
return $productID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user