diff --git a/Web/Models/Entities/Document.php b/Web/Models/Entities/Document.php index dd51a3f84..5cec5e670 100644 --- a/Web/Models/Entities/Document.php +++ b/Web/Models/Entities/Document.php @@ -224,7 +224,7 @@ public function copy(User $user): Document $new_document->updateHash($this_document_array["hash"]); $new_document->setOwner_hidden(1); $new_document->setCopy_of($this->getId()); - $new_document->setName($this->getId()); + $new_document->setName($this->getName()); $new_document->setOriginal_name($this->getOriginalName()); $new_document->setAccess_key(bin2hex(random_bytes(9))); $new_document->setFormat($this_document_array["format"]);