From 4785174e43d61b20e9248c8bfe9b5b50c61a5ae6 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 7 Oct 2015 19:01:08 -0400 Subject: Duplicate a project with tasks will copy the new tasks in the same columns --- app/Action/TaskDuplicateAnotherProject.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/Action') diff --git a/app/Action/TaskDuplicateAnotherProject.php b/app/Action/TaskDuplicateAnotherProject.php index 55ebc76e..7b7c6bf6 100644 --- a/app/Action/TaskDuplicateAnotherProject.php +++ b/app/Action/TaskDuplicateAnotherProject.php @@ -64,7 +64,9 @@ class TaskDuplicateAnotherProject extends Base */ public function doAction(array $data) { - return (bool) $this->taskDuplication->duplicateToProject($data['task_id'], $this->getParam('project_id')); + $destination_column_id = $this->board->getFirstColumn($this->getParam('project_id')); + + return (bool) $this->taskDuplication->duplicateToProject($data['task_id'], $this->getParam('project_id'), null, $destination_column_id); } /** -- cgit v1.2.3