diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-26 22:23:12 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-26 22:23:12 -0400 |
commit | 82b5b491bec94cb3d40a5820fbef9959435309be (patch) | |
tree | 9d53ecaec423630022b2bb1ce3f03867cff40f49 /app/Controller/TaskModificationController.php | |
parent | 9ebbe3da56914c408327997cea4eb00db2f88e0c (diff) |
Rename task view controller
Diffstat (limited to 'app/Controller/TaskModificationController.php')
-rw-r--r-- | app/Controller/TaskModificationController.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/TaskModificationController.php b/app/Controller/TaskModificationController.php index 47c07511..09a8fabe 100644 --- a/app/Controller/TaskModificationController.php +++ b/app/Controller/TaskModificationController.php @@ -21,7 +21,7 @@ class TaskModificationController extends BaseController { $task = $this->getTask(); $this->taskModification->update(array('id' => $task['id'], 'date_started' => time())); - $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']))); + $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id']))); } /** @@ -67,7 +67,7 @@ class TaskModificationController extends BaseController $this->flash->failure(t('Unable to update your task.')); } - return $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); + return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); } return $this->description($values, $errors); @@ -121,7 +121,7 @@ class TaskModificationController extends BaseController if ($valid && $this->taskModification->update($values)) { $this->flash->success(t('Task updated successfully.')); - $this->response->redirect($this->helper->url->to('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); + $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); } else { $this->flash->failure(t('Unable to update your task.')); $this->edit($values, $errors); |