From 81df22de238bc36d810b95ad67a4426db095fbab Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Nov 2014 18:23:20 -0500 Subject: Create TaskDuplication model --- app/Action/TaskDuplicateAnotherProject.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/Action/TaskDuplicateAnotherProject.php') diff --git a/app/Action/TaskDuplicateAnotherProject.php b/app/Action/TaskDuplicateAnotherProject.php index 4ab88534..55ebc76e 100644 --- a/app/Action/TaskDuplicateAnotherProject.php +++ b/app/Action/TaskDuplicateAnotherProject.php @@ -64,9 +64,7 @@ class TaskDuplicateAnotherProject extends Base */ public function doAction(array $data) { - $task = $this->taskFinder->getById($data['task_id']); - $this->task->duplicateToAnotherProject($this->getParam('project_id'), $task); - return true; + return (bool) $this->taskDuplication->duplicateToProject($data['task_id'], $this->getParam('project_id')); } /** -- cgit v1.2.3