From 1fb7da9222ae3d23e073cea291e95a4250938e21 Mon Sep 17 00:00:00 2001 From: lizhiqiang Date: Wed, 17 Nov 2021 16:36:28 +0800 Subject: [PATCH] *Finish bug #16363. --- module/product/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/product/model.php b/module/product/model.php index fb3df99ec8..1dd7d1603c 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -884,7 +884,7 @@ class productModel extends model else { $this->config->product->search['fields']['branch'] = sprintf($this->lang->product->branch, $this->lang->product->branchName[$productInfo->type]); - $this->config->product->search['params']['branch']['values'] = array('' => '', '0' => $this->lang->branch->main) + $this->loadModel('branch')->getPairs($productID, 'noempty') + array('all' => $this->lang->branch->all); + $this->config->product->search['params']['branch']['values'] = array('' => '', '0' => $this->lang->branch->main) + $this->loadModel('branch')->getPairs($productID, 'noempty'); } $this->loadModel('search')->setSearchParams($this->config->product->search);