From 1506fe5e4c647ef510fc4e934f491a28901b470d Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Fri, 28 Jan 2022 13:15:02 +0800 Subject: [PATCH] * fix bug #19025. --- module/action/model.php | 5 +++++ module/task/control.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/module/action/model.php b/module/action/model.php index 1eaebd6c0a..b930d6df57 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1343,6 +1343,11 @@ class actionModel extends model $action->objectLink = helper::createLink('assetlib', 'storyView', "storyID=$action->objectID"); } + if($action->objectType == 'story' and $this->config->vision == 'lite') + { + $action->objectLink = helper::createLink('projectstory', 'view', "storyID=$action->objectID"); + } + if(strpos(',kanbanregion,kanbancard,', ",{$action->objectType},") !== false) { $table = $this->config->objectTables[$action->objectType]; diff --git a/module/task/control.php b/module/task/control.php index 9014c5ad24..8898a5e180 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -725,6 +725,8 @@ class task extends control { $this->session->set('executionList', $this->app->getURI(true), 'execution'); + $this->commonAction($taskID); + $taskID = (int)$taskID; $task = $this->task->getById($taskID, true); if(!$task)