Fix Postgres SQL error in PR #3047

This commit is contained in:
Frederic Guillot 2017-02-16 22:37:27 -05:00
parent 3799b3b300
commit 0430a09c06
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {