* Add the session list and adjust the assetlib link in dynamic.

This commit is contained in:
guanxiying
2021-06-30 18:39:30 +08:00
parent ecb973f9d9
commit 3154474094
3 changed files with 42 additions and 24 deletions
+5
View File
@@ -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')