From 2deb6cc917bdcfa503a892491532b94bef19d1e1 Mon Sep 17 00:00:00 2001 From: Michael Vickers Date: Sun, 14 Oct 2018 10:58:31 +0100 Subject: Redirect to board view of the current task after duplication --- app/Controller/TaskDuplicationController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller') diff --git a/app/Controller/TaskDuplicationController.php b/app/Controller/TaskDuplicationController.php index 915bf8f8..6f81b25a 100644 --- a/app/Controller/TaskDuplicationController.php +++ b/app/Controller/TaskDuplicationController.php @@ -87,7 +87,7 @@ class TaskDuplicationController extends BaseController if ($task_id > 0) { $this->flash->success(t('Task created successfully.')); - return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $values['project_id'], 'task_id' => $task_id))); + return $this->response->redirect($this->helper->url->to('BoardViewController', 'show', array('project_id' => $task['project_id'])), true); } } -- cgit v1.2.3