* Fix bug #41563, reset preBranch if current product and previous prodcut is not the same.

This commit is contained in:
liumengyi
2023-12-15 10:25:02 +08:00
parent 0511fd15b3
commit d6de6fdaef
+2 -2
View File
@@ -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;
}