Duplicate a project with tasks will copy the new tasks in the same columns
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user