From 0430a09c069134622c0161dc2fb9ba3718a73c0d Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 16 Feb 2017 22:37:27 -0500 Subject: Fix Postgres SQL error in PR #3047 --- app/Model/BoardModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- cgit v1.2.3