From af1376a1b659f4b1bc2da4c6fe75b8a0fd9ed232 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 20 Jun 2023 15:09:24 +0800 Subject: [PATCH] * Fix bug #35984. --- module/product/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/product/control.php b/module/product/control.php index 29b07e967f..eec0403959 100755 --- a/module/product/control.php +++ b/module/product/control.php @@ -149,6 +149,7 @@ class product extends control if($product && !isset($this->products[$product->id])) $this->products[$product->id] = $product->name; + if(!is_string($this->cookie->preBranch) and !is_int($this->cookie->preBranch)) $this->cookie->preBranch = (int)$this->cookie->preBranch; if($product and $product->type != 'normal') { $branchPairs = $this->loadModel('branch')->getPairs($productID, 'all');