Skip to content

Commit

Permalink
* Fix bug #48681.
Browse files Browse the repository at this point in the history
  • Loading branch information
daitingting committed Apr 30, 2024
1 parent 9e246ce commit 6b90c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/action/model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1128,11 +1128,12 @@ public function setObjectLink(object $action, array $deptUsers, array $shadowPro
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);

/* Set app for no multiple project. */
if(!empty($action->objectLink) && !empty($project) && empty($project->multiple)) $action->objectLink .= '#app=project';
if($this->config->vision == 'lite' && $action->objectType == 'module') $action->objectLink .= '#app=project';

$action->objectLink = !$this->actionTao->checkActionClickable($action, $deptUsers, $moduleName, $methodName) ? '' : helper::createLink($moduleName, $methodName, $params);
return $action;
}

Expand Down

0 comments on commit 6b90c99

Please sign in to comment.