From b9dc9b118ee40eef104399d74e874f2427655ba1 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Fri, 1 Apr 2022 14:05:06 +0800 Subject: [PATCH] * Fix bug #19676. --- module/task/control.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/task/control.php b/module/task/control.php index ae454bdbf8..4b9de25297 100644 --- a/module/task/control.php +++ b/module/task/control.php @@ -832,6 +832,9 @@ class task extends control return print(js::error($this->lang->notFound) . js::locate($this->createLink('execution', 'all'))); } + $execution = $this->execution->getById($task->execution); + if(!isonlybody() and $execution->type == 'kanban') return $this->locate($this->createLink('execution', 'kanban', "executionID=$execution->id")); + $this->session->project = $task->project; if($task->fromBug != 0) @@ -859,7 +862,6 @@ class task extends control if($task->assignedTo == $this->app->user->account) $this->loadModel('action')->read('task', $taskID); /* Set menu. */ - $execution = $this->execution->getById($task->execution); if($this->app->tab == 'execution') $this->execution->setMenu($execution->id); $this->executeHooks($taskID);