diff --git a/module/branch/control.php b/module/branch/control.php index d68b02f74f..a903ef51d6 100644 --- a/module/branch/control.php +++ b/module/branch/control.php @@ -25,6 +25,9 @@ class branch extends control */ public function manage($productID, $browseType = 'active', $orderBy = 'order', $recTotal = 0, $recPerPage = 20, $pageID = 1) { + $product = $this->loadModel('product')->getById($productID); + if($product->type == 'normal') $this->locate($this->createLink('product', 'view', "productID=$productID")); + $this->loadModel('product')->setMenu($productID); $this->session->set('branchManage', $this->app->getURI(true), 'product'); $this->branch->changeBranchLanguage($productID);