From 36afb288d6ea7db593e7c3482d5aff5d8e2bd5b9 Mon Sep 17 00:00:00 2001 From: mayue Date: Thu, 25 Nov 2021 13:31:35 +0800 Subject: [PATCH] * Fix bug #16605. --- module/branch/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/branch/control.php b/module/branch/control.php index 42cc47a10b..0e606ecc99 100644 --- a/module/branch/control.php +++ b/module/branch/control.php @@ -205,7 +205,7 @@ class branch extends control */ public function ajaxGetDropMenu($productID, $branch = 0, $module, $method, $extra = '') { - $branches = $this->branch->getPairs($productID, 'all', empty($extra) ? $extra : 0); + $branches = $this->branch->getPairs($productID, 'all', !empty($extra) ? $extra : 0); $statusList = $this->dao->select('id,status')->from(TABLE_BRANCH)->where('product')->eq($productID)->fetchPairs(); $this->view->link = $this->loadModel('product')->getProductLink($module, $method, $extra, true);