diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/TaskDuplicationModel.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Model/TaskDuplicationModel.php b/app/Model/TaskDuplicationModel.php index c07ebca0..eb59f555 100644 --- a/app/Model/TaskDuplicationModel.php +++ b/app/Model/TaskDuplicationModel.php @@ -47,7 +47,10 @@ class TaskDuplicationModel extends Base */ public function duplicate($task_id) { - $new_task_id = $this->save($task_id, $this->copyFields($task_id)); + $values = $this->copyFields($task_id); + $values['title'] = t('[DUPLICATE]').' '.$values['title']; + + $new_task_id = $this->save($task_id, $values); if ($new_task_id !== false) { $this->tagDuplicationModel->duplicateTaskTags($task_id, $new_task_id); |