- Remove viewMenu of product.

This commit is contained in:
zhujinyong
2021-03-17 10:31:26 +08:00
parent 28df323cc3
commit c370c3ba54
3 changed files with 8 additions and 18 deletions
+7 -14
View File
@@ -305,8 +305,6 @@ class product extends control
*/
public function create($programID = 0)
{
$this->lang->product->switcherMenu = $this->product->getSwitcher();
if(!empty($_POST))
{
$productID = $this->product->create();
@@ -324,8 +322,11 @@ class product extends control
if($programID)
{
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->switcherMenu = $this->loadModel('program')->getSwitcher($programID, true);
}
else
{
$this->lang->product->switcherMenu = $this->product->getSwitcher();
}
$this->loadModel('user');
@@ -462,11 +463,7 @@ class product extends control
if($programID)
{
$this->app->rawModule = 'program';
$this->app->rawMethod = 'product';
$this->lang->navGroup->program = 'program';
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->switcherMenu = $this->loadModel('program')->getSwitcher($programID, true);
}
/* Get the relevant person in charge. */
@@ -553,11 +550,7 @@ class product extends control
}
/* Navigation remains under the program. */
$this->app->rawModule = 'program';
$this->app->rawMethod = 'product';
$this->lang->navGroup->program = 'program';
$this->loadModel('program')->setViewMenu($programID);
$this->lang->program->switcherMenu = $this->program->getSwitcher($programID, true);
$this->lang->program->switcherMenu = $this->loadModel('program')->getSwitcher($programID, true);
$this->loadModel('user');
$poUsers = $this->user->getPairs('nodeleted|pofirst', $appendPoUsers);
-1
View File
@@ -41,7 +41,6 @@ class projectrelease extends control
*/
public function commonAction($productID = 0, $branch = 0)
{
$this->lang->product->menu = $this->lang->product->viewMenu;
$this->lang->product->switcherMenu = $this->product->getSwitcher($productID);
/* Get product and product list by project. */
+1 -3
View File
@@ -69,7 +69,6 @@ class tree extends control
/* Set menu.*/
$moduleIndex = array_search('tree', $this->lang->noMenuModule);
if($moduleIndex !== false) unset($this->lang->noMenuModule[$moduleIndex]);
$this->lang->product->menu = $this->lang->product->viewMenu;
$this->lang->product->switcherMenu = $this->loadModel('product')->getSwitcher($rootID, 'story');
$this->lang->product->mainMenuAction = $this->product->getProductMainAction();
@@ -193,9 +192,8 @@ class tree extends control
{
$productID = $lib->product;
$this->lang->noMenuModule[] = 'tree';
unset($this->lang->product->viewMenu->set['subModule']);
unset($this->lang->product->menu->set['subModule']);
$this->lang->navGroup->tree = 'product';
$this->lang->product->menu = $this->lang->product->viewMenu;
$this->lang->product->switcherMenu = $this->loadModel('product')->getSwitcher($productID, 'story');
$this->lang->product->mainMenuAction = $this->product->getProductMainAction();