diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:37:27 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:37:27 -0500 |
commit | 0430a09c069134622c0161dc2fb9ba3718a73c0d (patch) | |
tree | 23419bae55040895bd91a23f16a17821a22692bf /app/Model | |
parent | 3799b3b300c9afff3e70a153d36d6c8410378ae1 (diff) |
Fix Postgres SQL error in PR #3047
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/BoardModel.php | 2 |
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)) { |