From 409a8384dcaea34093de87400a3fd7fe6a6dadec Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Wed, 17 Mar 2021 10:10:33 +0800 Subject: [PATCH] - remove viewMenu. --- module/product/control.php | 7 ------- module/program/control.php | 4 ---- 2 files changed, 11 deletions(-) diff --git a/module/product/control.php b/module/product/control.php index 8067725de7..af051619e5 100644 --- a/module/product/control.php +++ b/module/product/control.php @@ -160,7 +160,6 @@ class product extends control $this->session->set('storyList', $this->app->getURI(true)); $this->session->set('productList', $this->app->getURI(true)); - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID, "storyType=$storyType", $branch); $this->product->setMenu($this->products, $productID, $branch); } @@ -368,7 +367,6 @@ class product extends control { /* Set menu. */ $this->app->loadLang('custom'); - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID); /* Init vars. */ @@ -636,7 +634,6 @@ class product extends control $moduleIndex = array_search('product', $this->lang->noMenuModule); if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]); - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID); $product->desc = $this->loadModel('file')->setImgSize($product->desc); @@ -694,7 +691,6 @@ class product extends control */ public function roadmap($productID, $branch = 0) { - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID, '', $branch); $this->product->setMenu($this->products, $productID, $branch); @@ -798,7 +794,6 @@ class product extends control $product = $this->product->getStatByID($productID); if(!$product) die(js::locate('product', 'all')); - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID); $product->desc = $this->loadModel('file')->setImgSize($product->desc); @@ -1100,7 +1095,6 @@ class product extends control */ public function whitelist($productID = 0, $module = 'product', $objectType = 'product', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID, '', 0); $this->product->setMenu($this->products, $productID, 0); $this->lang->modulePageNav = ''; @@ -1119,7 +1113,6 @@ class product extends control */ public function addWhitelist($productID = 0, $deptID = 0, $branch = '') { - $this->lang->product->menu = $this->lang->product->viewMenu; $this->lang->product->switcherMenu = $this->product->getSwitcher($productID, '', $branch); $this->product->setMenu($this->products, $productID, $branch); $moduleIndex = array_search('product', $this->lang->noMenuModule); diff --git a/module/program/control.php b/module/program/control.php index ff813a1a10..6a9eedb121 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -102,7 +102,6 @@ class program extends control if(empty($program) || $program->type != 'program') die(js::error($this->lang->notFound) . js::locate('back')); $this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true); - $this->program->setViewMenu($programID); /* Load pager and get tasks. */ $this->app->loadClass('pager', $static = true); @@ -396,7 +395,6 @@ class program extends control $this->app->session->set('projectList', $this->app->getURI(true)); $this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true); - $this->program->setViewMenu($programID); $this->loadModel('datatable'); @@ -437,7 +435,6 @@ class program extends control public function stakeholder($programID = 0, $orderBy = 't1.id_desc', $recTotal = 0, $recPerPage = 15, $pageID = 1) { $this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true); - $this->program->setViewMenu($programID); /* Load pager and get tasks. */ $this->app->loadClass('pager', $static = true); @@ -473,7 +470,6 @@ class program extends control $this->loadModel('user'); $this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true); - $this->program->setViewMenu($programID); $this->loadModel('dept'); $deptUsers = $dept === '' ? array() : $this->dept->getDeptUserPairs($dept);