summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-02-16 22:37:27 -0500
committerFrederic Guillot <fred@kanboard.net>2017-02-16 22:37:27 -0500
commit0430a09c069134622c0161dc2fb9ba3718a73c0d (patch)
tree23419bae55040895bd91a23f16a17821a22692bf
parent3799b3b300c9afff3e70a153d36d6c8410378ae1 (diff)
Fix Postgres SQL error in PR #3047
-rw-r--r--app/Model/BoardModel.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/BoardModel.php b/app/Model/BoardModel.php
index 6b7fe490..f83b7cc2 100644
--- a/app/Model/BoardModel.php
+++ b/app/Model/BoardModel.php
@@ -69,7 +69,7 @@ class BoardModel extends Base
'project_id' => $project_id,
'task_limit' => $column['task_limit'],
'description' => $column['description'],
- 'hide_in_dashboard' => $column['hide_in_dashboard'],
+ 'hide_in_dashboard' => $column['hide_in_dashboard'] ?: 0, // Avoid SQL error with Postgres
);
if (! $this->db->table(ColumnModel::TABLE)->save($values)) {