summaryrefslogtreecommitdiff
path: root/app/Model
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model')
-rw-r--r--app/Model/Board.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Model/Board.php b/app/Model/Board.php
index 2b07ca46..8a344f7f 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,
));
}