* Add the session list and adjust the assetlib link in dynamic.
This commit is contained in:
@@ -48,6 +48,13 @@ class action extends control
|
||||
$this->session->set('researchplanList', $uri, 'project');
|
||||
$this->session->set('researchreportList', $uri, 'project');
|
||||
$this->session->set('meetingList', $uri, 'project');
|
||||
$this->session->set('storyLibList', $uri, 'assetlib');
|
||||
$this->session->set('issueLibList', $uri, 'assetlib');
|
||||
$this->session->set('riskLibList', $uri, 'assetlib');
|
||||
$this->session->set('opportunityLibList', $uri, 'assetlib');
|
||||
$this->session->set('practiceLibList', $uri, 'assetlib');
|
||||
$this->session->set('componentLibList', $uri, 'assetlib');
|
||||
|
||||
|
||||
/* Get deleted objects. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
|
||||
@@ -1038,6 +1038,11 @@ class actionModel extends model
|
||||
if(!is_array($objectLabel)) $action->objectLabel = $objectLabel;
|
||||
if(is_array($objectLabel) and isset($objectLabel[$actionType])) $action->objectLabel = $objectLabel[$actionType];
|
||||
}
|
||||
if(isset($this->config->maxVersion) and $action->objectType == 'assetlib')
|
||||
{
|
||||
$libType = $this->dao->select('type')->from(TABLE_ASSETLIB)->where('id')->eq($action->objectID)->fetch('type');
|
||||
if(strpos('story,issue,risk,opportunity,practice,component', $libType) !== false) $action->objectLabel = $this->lang->action->label->{$libType . 'assetlib'};
|
||||
}
|
||||
|
||||
/* If action type is login or logout, needn't link. */
|
||||
if($actionType == 'svncommited' or $actionType == 'gitcommited')
|
||||
|
||||
+30
-24
@@ -1000,30 +1000,36 @@ class my extends control
|
||||
{
|
||||
/* Save session. */
|
||||
$uri = $this->app->getURI(true);
|
||||
$this->session->set('productList', $uri, 'product');
|
||||
$this->session->set('storyList', $uri, 'product');
|
||||
$this->session->set('designList', $uri, 'project');
|
||||
$this->session->set('productPlanList', $uri, 'product');
|
||||
$this->session->set('releaseList', $uri, 'product');
|
||||
$this->session->set('programList', $uri, 'program');
|
||||
$this->session->set('projectList', $uri, 'project');
|
||||
$this->session->set('executionList', $uri, 'execution');
|
||||
$this->session->set('taskList', $uri, 'execution');
|
||||
$this->session->set('buildList', $uri, 'execution');
|
||||
$this->session->set('bugList', $uri, 'qa');
|
||||
$this->session->set('caseList', $uri, 'qa');
|
||||
$this->session->set('caselibList', $uri, 'qa');
|
||||
$this->session->set('testsuiteList', $uri, 'qa');
|
||||
$this->session->set('testtaskList', $uri, 'qa');
|
||||
$this->session->set('reportList', $uri, 'qa');
|
||||
$this->session->set('docList', $uri, 'doc');
|
||||
$this->session->set('todoList', $uri, 'my');
|
||||
$this->session->set('riskList', $uri, 'project');
|
||||
$this->session->set('issueList', $uri, 'project');
|
||||
$this->session->set('stakeholderList', $uri, 'project');
|
||||
$this->session->set('meetingroomList', $uri, 'admin');
|
||||
$this->session->set('meetingList', $uri, 'project');
|
||||
$this->session->set('meetingList', $uri, 'my');
|
||||
$this->session->set('productList', $uri, 'product');
|
||||
$this->session->set('storyList', $uri, 'product');
|
||||
$this->session->set('designList', $uri, 'project');
|
||||
$this->session->set('productPlanList', $uri, 'product');
|
||||
$this->session->set('releaseList', $uri, 'product');
|
||||
$this->session->set('programList', $uri, 'program');
|
||||
$this->session->set('projectList', $uri, 'project');
|
||||
$this->session->set('executionList', $uri, 'execution');
|
||||
$this->session->set('taskList', $uri, 'execution');
|
||||
$this->session->set('buildList', $uri, 'execution');
|
||||
$this->session->set('bugList', $uri, 'qa');
|
||||
$this->session->set('caseList', $uri, 'qa');
|
||||
$this->session->set('caselibList', $uri, 'qa');
|
||||
$this->session->set('testsuiteList', $uri, 'qa');
|
||||
$this->session->set('testtaskList', $uri, 'qa');
|
||||
$this->session->set('reportList', $uri, 'qa');
|
||||
$this->session->set('docList', $uri, 'doc');
|
||||
$this->session->set('todoList', $uri, 'my');
|
||||
$this->session->set('riskList', $uri, 'project');
|
||||
$this->session->set('issueList', $uri, 'project');
|
||||
$this->session->set('stakeholderList', $uri, 'project');
|
||||
$this->session->set('meetingroomList', $uri, 'admin');
|
||||
$this->session->set('meetingList', $uri, 'project');
|
||||
$this->session->set('meetingList', $uri, 'assetlib');
|
||||
$this->session->set('storyLibList', $uri, 'assetlib');
|
||||
$this->session->set('issueLibList', $uri, 'assetlib');
|
||||
$this->session->set('riskLibList', $uri, 'assetlib');
|
||||
$this->session->set('opportunityLibList', $uri, 'assetlib');
|
||||
$this->session->set('practiceLibList', $uri, 'assetlib');
|
||||
$this->session->set('componentLibList', $uri, 'assetlib');
|
||||
|
||||
/* Set the pager. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
|
||||
Reference in New Issue
Block a user