* Fix bug.

This commit is contained in:
xieqiyu
2021-11-08 15:07:05 +08:00
parent 261d027273
commit eb8300049f
+1 -1
View File
@@ -413,7 +413,7 @@ class productplan extends control
else
{
$this->config->product->search['fields']['branch'] = $this->lang->product->branch;
$branches = array('' => '', $this->loadModel('branch')->getPairs($plan->product);
$branches = array('' => '') + $this->loadModel('branch')->getPairs($plan->product);
if($plan->branch) $branches = array('' => '', $plan->branch => $branches[$plan->branch]);
$this->config->product->search['params']['branch']['values'] = $branches;
}