diff --git a/app/Controller/Board.php b/app/Controller/Board.php index c9622f865..758dea1e5 100644 --- a/app/Controller/Board.php +++ b/app/Controller/Board.php @@ -283,7 +283,7 @@ class Board extends Base if ($valid) { - if ($this->board->addColumn($project['id'], $data['title'],$data['description'])) { + if ($this->board->addColumn($project['id'], $data['title'],$data['task_limit'],$data['description'])) { $this->session->flash(t('Board updated successfully.')); $this->response->redirect('?controller=board&action=edit&project_id='.$project['id']); } diff --git a/app/Model/Board.php b/app/Model/Board.php index 2b07ca46d..8a344f7f2 100644 --- a/app/Model/Board.php +++ b/app/Model/Board.php @@ -118,7 +118,7 @@ class Board extends Base $values = array( 'project_id' => $project_id, 'title' => $title, - 'task_limit' => $task_limit, + 'task_limit' => intval($task_limit), 'position' => $this->getLastColumnPosition($project_id) + 1, 'description' => $description, ); @@ -140,7 +140,7 @@ class Board extends Base { return $this->db->table(self::TABLE)->eq('id', $column_id)->update(array( 'title' => $title, - 'task_limit' => $task_limit, + 'task_limit' => intval($task_limit), 'description' => $description, )); } diff --git a/app/Template/board/edit.php b/app/Template/board/edit.php index 25a8ededd..75f2b4f5a 100644 --- a/app/Template/board/edit.php +++ b/app/Template/board/edit.php @@ -6,16 +6,20 @@
| = t('Column title') ?> | -= t('Description') ?> | = t('Task limit') ?> | = t('Actions') ?> | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| = $this->e($column['title']) ?> | -= $this->e($column['description']) ?> | += $this->e($column['title']) ?> + + + + + + | = $this->e($column['task_limit']) ?> | -+ |
|