diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-20 15:08:18 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-20 15:08:18 -0500 |
commit | fc468088c3b39bc4e9d185683442db1d36b61e23 (patch) | |
tree | 6f5b6a1e13f528a8f54ac502ab428feadc53e5f5 /app/Action | |
parent | 83832522867d06241441c04d2b3237200db57224 (diff) |
Split Board model into multiple classes
Diffstat (limited to 'app/Action')
-rw-r--r-- | app/Action/CommentCreationMoveTaskColumn.php | 2 | ||||
-rw-r--r-- | app/Action/TaskDuplicateAnotherProject.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Action/CommentCreationMoveTaskColumn.php b/app/Action/CommentCreationMoveTaskColumn.php index 4473cf91..11224d67 100644 --- a/app/Action/CommentCreationMoveTaskColumn.php +++ b/app/Action/CommentCreationMoveTaskColumn.php @@ -71,7 +71,7 @@ class CommentCreationMoveTaskColumn extends Base return false; } - $column = $this->board->getColumn($data['column_id']); + $column = $this->column->getById($data['column_id']); return (bool) $this->comment->create(array( 'comment' => t('Moved to column %s', $column['title']), diff --git a/app/Action/TaskDuplicateAnotherProject.php b/app/Action/TaskDuplicateAnotherProject.php index 5bcdce08..5f05136e 100644 --- a/app/Action/TaskDuplicateAnotherProject.php +++ b/app/Action/TaskDuplicateAnotherProject.php @@ -74,7 +74,7 @@ class TaskDuplicateAnotherProject extends Base */ public function doAction(array $data) { - $destination_column_id = $this->board->getFirstColumn($this->getParam('project_id')); + $destination_column_id = $this->column->getFirstColumnId($this->getParam('project_id')); return (bool) $this->taskDuplication->duplicateToProject($data['task_id'], $this->getParam('project_id'), null, $destination_column_id); } |