diff options
-rw-r--r-- | app/Model/SubtaskTaskConversionModel.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/SubtaskTaskConversionModel.php b/app/Model/SubtaskTaskConversionModel.php index 8bf83d76..dd6b479d 100644 --- a/app/Model/SubtaskTaskConversionModel.php +++ b/app/Model/SubtaskTaskConversionModel.php @@ -23,6 +23,7 @@ class SubtaskTaskConversionModel extends Base public function convertToTask($project_id, $subtask_id) { $subtask = $this->subtaskModel->getById($subtask_id); + $parent_task = $this->taskFinderModel->getById($subtask['task_id']); $task_id = $this->taskCreationModel->create(array( 'project_id' => $project_id, @@ -30,6 +31,7 @@ class SubtaskTaskConversionModel extends Base 'time_estimated' => $subtask['time_estimated'], 'time_spent' => $subtask['time_spent'], 'owner_id' => $subtask['user_id'], + 'category_id' => $parent_task['category_id'] )); if ($task_id !== false) { |