diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:33:15 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-02-16 22:33:15 -0500 |
commit | 3799b3b300c9afff3e70a153d36d6c8410378ae1 (patch) | |
tree | e745f5ae737d6de36d3ff5b36a854412f1f17b26 /app/Model | |
parent | 05e4f80b4b5b2905d6e2ec2e64b4814ecb0f9f6f (diff) | |
parent | 9264fefe201a92fc56f05c703e4db3514c9e416c (diff) |
Merge pull-request #3047
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/BoardModel.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Model/BoardModel.php b/app/Model/BoardModel.php index d80fb28f..6b7fe490 100644 --- a/app/Model/BoardModel.php +++ b/app/Model/BoardModel.php @@ -38,7 +38,12 @@ class BoardModel extends Base $column_name = trim($column_name); if (! empty($column_name)) { - $columns[] = array('title' => $column_name, 'task_limit' => 0, 'description' => ''); + $columns[] = array( + 'title' => $column_name, + 'task_limit' => 0, + 'description' => '', + 'hide_in_dashboard' => 0, + ); } } @@ -64,6 +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'], ); if (! $this->db->table(ColumnModel::TABLE)->save($values)) { @@ -85,7 +91,7 @@ class BoardModel extends Base public function duplicate($project_from, $project_to) { $columns = $this->db->table(ColumnModel::TABLE) - ->columns('title', 'task_limit', 'description') + ->columns('title', 'task_limit', 'description', 'hide_in_dashboard') ->eq('project_id', $project_from) ->asc('position') ->findAll(); |