From e6d0658a0eedeb6a641c003d1c492af0f9a7502c Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 1 Sep 2014 19:36:40 -0800 Subject: Add the possibility to duplicate a task to another project --- app/Action/TaskDuplicateAnotherProject.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Action') diff --git a/app/Action/TaskDuplicateAnotherProject.php b/app/Action/TaskDuplicateAnotherProject.php index 7ef0f6ab..0f14cbed 100644 --- a/app/Action/TaskDuplicateAnotherProject.php +++ b/app/Action/TaskDuplicateAnotherProject.php @@ -73,7 +73,8 @@ class TaskDuplicateAnotherProject extends Base { if ($data['column_id'] == $this->getParam('column_id') && $data['project_id'] != $this->getParam('project_id')) { - $this->task->duplicateToAnotherProject($data['task_id'], $this->getParam('project_id')); + $task = $this->task->getById($data['task_id']); + $this->task->duplicateToAnotherProject($this->getParam('project_id'), $task); return true; } -- cgit v1.2.3