summaryrefslogtreecommitdiff
path: root/app/Controller/ColumnController.php
diff options
context:
space:
mode:
authorBusfreak <Busfreak@users.noreply.github.com>2016-07-05 17:09:13 +0200
committerFrédéric Guillot <fred@kanboard.net>2016-07-05 11:09:13 -0400
commit6ccd8c11faff4a8b5209b45c140d12f94d97449b (patch)
tree74fda85e7f5d1ab359e4aa77c8b944e92da59805 /app/Controller/ColumnController.php
parentb215296f971eaf35773218740d3d6696f8dc2310 (diff)
Hide tasks within specific columns in dashboard (#2424)
Diffstat (limited to 'app/Controller/ColumnController.php')
-rw-r--r--app/Controller/ColumnController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/ColumnController.php b/app/Controller/ColumnController.php
index 95fbcaaa..e3f9bfff 100644
--- a/app/Controller/ColumnController.php
+++ b/app/Controller/ColumnController.php
@@ -66,7 +66,7 @@ class ColumnController extends BaseController
list($valid, $errors) = $this->columnValidator->validateCreation($values);
if ($valid) {
- if ($this->columnModel->create($project['id'], $values['title'], $values['task_limit'], $values['description']) !== false) {
+ if ($this->columnModel->create($project['id'], $values['title'], $values['task_limit'], $values['description'], $values['hide_in_dashboard']) !== false) {
$this->flash->success(t('Column created successfully.'));
return $this->response->redirect($this->helper->url->to('ColumnController', 'index', array('project_id' => $project['id'])), true);
} else {
@@ -111,7 +111,7 @@ class ColumnController extends BaseController
list($valid, $errors) = $this->columnValidator->validateModification($values);
if ($valid) {
- if ($this->columnModel->update($values['id'], $values['title'], $values['task_limit'], $values['description'])) {
+ if ($this->columnModel->update($values['id'], $values['title'], $values['task_limit'], $values['description'], $values['hide_in_dashboard']) !== false) {
$this->flash->success(t('Board updated successfully.'));
return $this->response->redirect($this->helper->url->to('ColumnController', 'index', array('project_id' => $project['id'])));
} else {