summaryrefslogtreecommitdiff
path: root/app/Controller/Taskduplication.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-26 22:23:12 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-26 22:23:12 -0400
commit82b5b491bec94cb3d40a5820fbef9959435309be (patch)
tree9d53ecaec423630022b2bb1ce3f03867cff40f49 /app/Controller/Taskduplication.php
parent9ebbe3da56914c408327997cea4eb00db2f88e0c (diff)
Rename task view controller
Diffstat (limited to 'app/Controller/Taskduplication.php')
-rw-r--r--app/Controller/Taskduplication.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/Taskduplication.php b/app/Controller/Taskduplication.php
index ff60228e..1ea3a3f9 100644
--- a/app/Controller/Taskduplication.php
+++ b/app/Controller/Taskduplication.php
@@ -25,7 +25,7 @@ class Taskduplication extends BaseController
if ($task_id > 0) {
$this->flash->success(t('Task created successfully.'));
- return $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task_id)));
+ return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task_id)));
} else {
$this->flash->failure(t('Unable to create this task.'));
return $this->response->redirect($this->helper->url->to('taskduplication', 'duplicate', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true);
@@ -57,7 +57,7 @@ class Taskduplication extends BaseController
$values['category_id'],
$values['owner_id'])) {
$this->flash->success(t('Task updated successfully.'));
- return $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $values['project_id'], 'task_id' => $task['id'])));
+ return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $values['project_id'], 'task_id' => $task['id'])));
}
$this->flash->failure(t('Unable to update your task.'));
@@ -87,7 +87,7 @@ class Taskduplication extends BaseController
if ($task_id > 0) {
$this->flash->success(t('Task created successfully.'));
- return $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $values['project_id'], 'task_id' => $task_id)));
+ return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $values['project_id'], 'task_id' => $task_id)));
}
}