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);