summaryrefslogtreecommitdiff
path: root/app/Controller/TaskInternalLinkController.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/TaskInternalLinkController.php
parent9ebbe3da56914c408327997cea4eb00db2f88e0c (diff)
Rename task view controller
Diffstat (limited to 'app/Controller/TaskInternalLinkController.php')
-rw-r--r--app/Controller/TaskInternalLinkController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/TaskInternalLinkController.php b/app/Controller/TaskInternalLinkController.php
index f97426c6..4018c3a5 100644
--- a/app/Controller/TaskInternalLinkController.php
+++ b/app/Controller/TaskInternalLinkController.php
@@ -67,7 +67,7 @@ class TaskInternalLinkController extends BaseController
if ($valid) {
if ($this->taskLink->create($values['task_id'], $values['opposite_task_id'], $values['link_id'])) {
$this->flash->success(t('Link added successfully.'));
- return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
+ return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
}
$errors = array('title' => array(t('The exact same link already exists')));
@@ -121,7 +121,7 @@ class TaskInternalLinkController extends BaseController
if ($valid) {
if ($this->taskLink->update($values['id'], $values['task_id'], $values['opposite_task_id'], $values['link_id'])) {
$this->flash->success(t('Link updated successfully.'));
- return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])).'#links');
+ return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])).'#links');
}
$this->flash->failure(t('Unable to update your link.'));
@@ -162,6 +162,6 @@ class TaskInternalLinkController extends BaseController
$this->flash->failure(t('Unable to remove this link.'));
}
- $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])));
+ $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])));
}
}