From 937079709514c037959d691c0d653c39d5ea84e6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 28 May 2016 20:26:23 -0400 Subject: Minor fixes --- app/Controller/CustomFilterController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/Controller/CustomFilterController.php') diff --git a/app/Controller/CustomFilterController.php b/app/Controller/CustomFilterController.php index 8bba0856..e5f674cd 100644 --- a/app/Controller/CustomFilterController.php +++ b/app/Controller/CustomFilterController.php @@ -18,6 +18,9 @@ class CustomFilterController extends BaseController * Display list of filters * * @access public + * @param array $values + * @param array $errors + * @throws \Kanboard\Core\Controller\PageNotFoundException */ public function index(array $values = array(), array $errors = array()) { @@ -47,7 +50,7 @@ class CustomFilterController extends BaseController list($valid, $errors) = $this->customFilterValidator->validateCreation($values); if ($valid) { - if ($this->customFilterModel->create($values)) { + if ($this->customFilterModel->create($values) !== false) { $this->flash->success(t('Your custom filter have been created successfully.')); return $this->response->redirect($this->helper->url->to('CustomFilterController', 'index', array('project_id' => $project['id']))); } else { @@ -101,6 +104,10 @@ class CustomFilterController extends BaseController * Edit a custom filter (display the form) * * @access public + * @param array $values + * @param array $errors + * @throws AccessForbiddenException + * @throws \Kanboard\Core\Controller\PageNotFoundException */ public function edit(array $values = array(), array $errors = array()) { -- cgit v1.2.3