* Fix bug #49078, set object link for the max doc.

This commit is contained in:
liumengyi
2024-05-11 16:44:22 +08:00
parent a177737e4e
commit 0c8ded5e10
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1131,7 +1131,7 @@ class actionModel extends model
if($action->objectType == 'story' && $this->config->vision == 'lite') list($moduleName, $methodName, $params) = array('projectstory', 'view', "storyID={$action->objectID}");
if($action->objectType == 'review') list($moduleName, $methodName, $params) = array('review', 'view', "reviewID={$action->objectID}");
$action->objectLink = !$this->actionTao->checkActionClickable($action, $deptUsers, $moduleName, $methodName) ? '' : helper::createLink($moduleName, $methodName, $params);
if(!empty($action->isLibDoc)) $action->objectLink = !$this->actionTao->checkActionClickable($action, $deptUsers, $moduleName, $methodName) ? '' : helper::createLink($moduleName, $methodName, $params);
/* Set app for no multiple project. */
if(!empty($action->objectLink) && !empty($project) && empty($project->multiple)) $action->objectLink .= '#app=project';
+2 -1
View File
@@ -809,7 +809,8 @@ class actionTao extends actionModel
$method = $this->config->action->assetViewMethod[$action->objectType];
}
isset($method) ? $action->objectLink = helper::createLink('assetlib', $method, sprintf($vars, $action->objectID)) : helper::createLink($moduleName, $methodName, sprintf($vars, $action->objectID));
$action->objectLink = isset($method) ? helper::createLink('assetlib', $method, sprintf($vars, $action->objectID)) : helper::createLink($moduleName, $methodName, sprintf($vars, $action->objectID));
if(isset($method)) $action->isLibDoc = true;
}
/**