From 4061927d215c846ff8eb196301bf61532018042b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 12 Oct 2014 15:32:35 -0400 Subject: Move some Task model methods to the TaskFinder class --- app/Action/TaskDuplicateAnotherProject.php | 2 +- app/Action/TaskMoveAnotherProject.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Action') diff --git a/app/Action/TaskDuplicateAnotherProject.php b/app/Action/TaskDuplicateAnotherProject.php index b76b3884..4ab88534 100644 --- a/app/Action/TaskDuplicateAnotherProject.php +++ b/app/Action/TaskDuplicateAnotherProject.php @@ -64,7 +64,7 @@ class TaskDuplicateAnotherProject extends Base */ public function doAction(array $data) { - $task = $this->task->getById($data['task_id']); + $task = $this->taskFinder->getById($data['task_id']); $this->task->duplicateToAnotherProject($this->getParam('project_id'), $task); return true; } diff --git a/app/Action/TaskMoveAnotherProject.php b/app/Action/TaskMoveAnotherProject.php index 9922a981..d852f56d 100644 --- a/app/Action/TaskMoveAnotherProject.php +++ b/app/Action/TaskMoveAnotherProject.php @@ -64,7 +64,7 @@ class TaskMoveAnotherProject extends Base */ public function doAction(array $data) { - $task = $this->task->getById($data['task_id']); + $task = $this->taskFinder->getById($data['task_id']); $this->task->moveToAnotherProject($this->getParam('project_id'), $task); return true; } -- cgit v1.2.3