summaryrefslogtreecommitdiff
path: root/app/Controller/TaskStatusController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-01-23 21:05:59 -0500
committerFrederic Guillot <fred@kanboard.net>2017-01-23 21:05:59 -0500
commit5315e4961e3628a04d19440a3dceca9ecc2acb82 (patch)
tree2bbe1edc644ecb881dfe955b96b1da4b51aa26c3 /app/Controller/TaskStatusController.php
parent10d96bfd668f445249190c52bedb2eb0e7e9410d (diff)
Fix regression: stay on the same page when a task is closed
Diffstat (limited to 'app/Controller/TaskStatusController.php')
-rw-r--r--app/Controller/TaskStatusController.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Controller/TaskStatusController.php b/app/Controller/TaskStatusController.php
index 82b4f9c4..56d38400 100644
--- a/app/Controller/TaskStatusController.php
+++ b/app/Controller/TaskStatusController.php
@@ -52,11 +52,11 @@ class TaskStatusController extends BaseController
$this->flash->failure($failure_message);
}
- return $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
+ $this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), true);
+ } else {
+ $this->response->html($this->template->render($template, array(
+ 'task' => $task,
+ )));
}
-
- return $this->response->html($this->template->render($template, array(
- 'task' => $task,
- )));
}
}