- Remove viewMenu of product.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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. */
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user