diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-05-15 18:31:47 -0400 |
| commit | 67b836164997527b91452b19adbcb8aa3c5decf1 (patch) | |
| tree | b5876d311912e97b0592c7e208639f7b52813a75 /app/Controller/TaskRecurrence.php | |
| parent | 108e867605dbc7ece4cbcbecc89a674e9c154a9b (diff) | |
Refactoring: added controlled middleware and changed response class
Diffstat (limited to 'app/Controller/TaskRecurrence.php')
| -rw-r--r-- | app/Controller/TaskRecurrence.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/app/Controller/TaskRecurrence.php b/app/Controller/TaskRecurrence.php index 569ef8d9..72dce3a5 100644 --- a/app/Controller/TaskRecurrence.php +++ b/app/Controller/TaskRecurrence.php @@ -8,12 +8,16 @@ namespace Kanboard\Controller; * @package controller * @author Frederic Guillot */ -class TaskRecurrence extends Base +class TaskRecurrence extends BaseController { /** * Edit recurrence form * * @access public + * @param array $values + * @param array $errors + * @throws \Kanboard\Core\Controller\AccessForbiddenException + * @throws \Kanboard\Core\Controller\PageNotFoundException */ public function edit(array $values = array(), array $errors = array()) { @@ -53,9 +57,9 @@ class TaskRecurrence extends Base $this->flash->failure(t('Unable to update your task.')); } - $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('task', 'show', array('project_id' => $task['project_id'], 'task_id' => $task['id'])), true); } - $this->edit($values, $errors); + return $this->edit($values, $errors); } } |
