summaryrefslogtreecommitdiff
path: root/app/Action
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-07 19:01:08 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-07 19:01:08 -0400
commit4785174e43d61b20e9248c8bfe9b5b50c61a5ae6 (patch)
treef72a8a3a27401a6b074c92a7457d324962bfdc61 /app/Action
parent6dba53317c202c56ba60cf490084630de42b939c (diff)
Duplicate a project with tasks will copy the new tasks in the same columns
Diffstat (limited to 'app/Action')
-rw-r--r--app/Action/TaskDuplicateAnotherProject.php4
1 files changed, 3 insertions, 1 deletions
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);
}
/**