* Drop no menu module.
This commit is contained in:
@@ -79,9 +79,6 @@ class user extends control
|
||||
$date = (int)$type == 0 ? helper::today() : $type;
|
||||
$users = $this->loadModel('dept')->getDeptUserPairs($user->dept, 'useid');
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
/* set menus. */
|
||||
$this->view->userList = $this->user->setUserList($users, $userID);
|
||||
|
||||
@@ -124,11 +121,6 @@ class user extends control
|
||||
$account = $user->account;
|
||||
$users = $this->loadModel('dept')->getDeptUserPairs($user->dept, 'useid');
|
||||
|
||||
/* Set menu. */
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
/* Modify story title. */
|
||||
$this->loadModel('story');
|
||||
if($storyType == 'requirement') $this->lang->story->title = str_replace($this->lang->SRCommon, $this->lang->URCommon, $this->lang->story->title);
|
||||
@@ -175,9 +167,6 @@ class user extends control
|
||||
/* Set the menu. */
|
||||
$this->view->userList = $this->user->setUserList($users, $userID);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
/* Assign. */
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->task;
|
||||
$this->view->position[] = $this->lang->user->task;
|
||||
@@ -222,9 +211,6 @@ class user extends control
|
||||
/* Load the lang of bug module. */
|
||||
$this->app->loadLang('bug');
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->bug;
|
||||
$this->view->position[] = $this->lang->user->bug;
|
||||
$this->view->tabID = 'bug';
|
||||
@@ -270,9 +256,6 @@ class user extends control
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->testTask;
|
||||
$this->view->position[] = $this->lang->user->testTask;
|
||||
$this->view->tasks = $this->loadModel('testtask')->getByUser($account, $pager, $sort);
|
||||
@@ -315,11 +298,6 @@ class user extends control
|
||||
/* Append id for secend sort. */
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
|
||||
/* Set menu. */
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$cases = array();
|
||||
if($type == 'case2Him')
|
||||
{
|
||||
@@ -376,9 +354,6 @@ class user extends control
|
||||
$this->loadModel('project');
|
||||
$this->view->userList = $this->user->setUserList($users, $userID);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->execution;
|
||||
$this->view->position[] = $this->lang->user->execution;
|
||||
$this->view->tabID = 'project';
|
||||
@@ -418,9 +393,6 @@ class user extends control
|
||||
/* Set the menus. */
|
||||
$this->view->userList = $this->user->setUserList($users, $userID);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->issue;
|
||||
$this->view->position[] = $this->lang->user->issue;
|
||||
$this->view->issues = $this->loadModel('issue')->getUserIssues($type, $account, $orderBy, $pager);
|
||||
@@ -461,9 +433,6 @@ class user extends control
|
||||
/* Set the menus. */
|
||||
$this->view->userList = $this->user->setUserList($users, $userID);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->risk;
|
||||
$this->view->position[] = $this->lang->user->risk;
|
||||
$this->view->risks = $this->loadModel('risk')->getUserRisks($type, $account, $orderBy, $pager);
|
||||
@@ -490,9 +459,6 @@ class user extends control
|
||||
$account = $user->account;
|
||||
$users = $this->loadModel('dept')->getDeptUserPairs($user->dept, 'useid');
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$this->view->title = "USER #$user->id $user->account/" . $this->lang->user->profile;
|
||||
$this->view->position[] = $this->lang->user->common;
|
||||
$this->view->position[] = $this->lang->user->profile;
|
||||
@@ -1116,9 +1082,6 @@ class user extends control
|
||||
$sort = $this->loadModel('common')->appendOrder($orderBy);
|
||||
$date = empty($date) ? '' : date('Y-m-d', $date);
|
||||
|
||||
/* Change the menu when in my module. */
|
||||
$this->user->resetMenu();
|
||||
|
||||
$actions = $this->loadModel('action')->getDynamic($account, $period, $sort, $pager, 'all', 'all', $date, $direction);
|
||||
|
||||
$this->view->title = $this->lang->user->common . $this->lang->colon . $this->lang->user->dynamic;
|
||||
|
||||
Reference in New Issue
Block a user