summaryrefslogtreecommitdiff
path: root/app/Model/BoardModel.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/BoardModel.php')
-rw-r--r--app/Model/BoardModel.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Model/BoardModel.php b/app/Model/BoardModel.php
index d80fb28f..65c7b2ad 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' => false,
+ );
}
}
@@ -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();