summaryrefslogtreecommitdiff
path: root/app/Controller/TaskExternalLink.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-18 21:00:14 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-18 21:00:14 -0400
commit854457baf0043b51ce9c30f36a6fecaed97cb04d (patch)
tree0f73023f63654ee7313ac79e83d9d19e58658a1a /app/Controller/TaskExternalLink.php
parent68fba8fb64afe00aedccdf72f25d79b26356f2ab (diff)
Improve task summary sections
Diffstat (limited to 'app/Controller/TaskExternalLink.php')
-rw-r--r--app/Controller/TaskExternalLink.php22
1 files changed, 3 insertions, 19 deletions
diff --git a/app/Controller/TaskExternalLink.php b/app/Controller/TaskExternalLink.php
index 72015686..0db8ec37 100644
--- a/app/Controller/TaskExternalLink.php
+++ b/app/Controller/TaskExternalLink.php
@@ -13,22 +13,6 @@ use Kanboard\Core\ExternalLink\ExternalLinkProviderNotFound;
class TaskExternalLink extends Base
{
/**
- * Creation form
- *
- * @access public
- */
- public function show()
- {
- $task = $this->getTask();
-
- $this->response->html($this->helper->layout->task('task_external_link/show', array(
- 'links' => $this->taskExternalLink->getAll($task['id']),
- 'task' => $task,
- 'title' => t('List of external links'),
- )));
- }
-
- /**
* First creation form
*
* @access public
@@ -90,7 +74,7 @@ class TaskExternalLink extends Base
if ($valid && $this->taskExternalLink->create($values)) {
$this->flash->success(t('Link added successfully.'));
- return $this->response->redirect($this->helper->url->to('TaskExternalLink', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
+ return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
}
$this->edit($values, $errors);
@@ -137,7 +121,7 @@ class TaskExternalLink extends Base
if ($valid && $this->taskExternalLink->update($values)) {
$this->flash->success(t('Link updated successfully.'));
- return $this->response->redirect($this->helper->url->to('TaskExternalLink', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
+ return $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
}
$this->edit($values, $errors);
@@ -180,6 +164,6 @@ class TaskExternalLink extends Base
$this->flash->failure(t('Unable to remove this link.'));
}
- $this->response->redirect($this->helper->url->to('TaskExternalLink', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])));
+ $this->response->redirect($this->helper->url->to('task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])));
}
}