diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-16 15:03:29 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-10-16 17:31:57 +0200 |
commit | 6e7c35d77eb85836a35b6b0c8d8ba24829350066 (patch) | |
tree | a0598e6fd957e0e99e4da30f6be5f872f5c06879 /apps | |
parent | 5be76411fa9cb9b883ae6c0405b44b3b6bc855e7 (diff) | |
download | nextcloud-server-6e7c35d77eb85836a35b6b0c8d8ba24829350066.tar.gz nextcloud-server-6e7c35d77eb85836a35b6b0c8d8ba24829350066.zip |
fix: do not duplicate existing entity
- this reverts 1e8048abee1745bab648dba5bf96f956c718e4e3
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Controller/TransferOwnershipController.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/apps/files/lib/Controller/TransferOwnershipController.php b/apps/files/lib/Controller/TransferOwnershipController.php index 3564b08ad6a..4ef6e392039 100644 --- a/apps/files/lib/Controller/TransferOwnershipController.php +++ b/apps/files/lib/Controller/TransferOwnershipController.php @@ -140,15 +140,8 @@ class TransferOwnershipController extends OCSController { return new DataResponse([], Http::STATUS_FORBIDDEN); } - $newTransferOwnership = new TransferOwnershipEntity(); - $newTransferOwnership->setNodeName($transferOwnership->getNodeName()); - $newTransferOwnership->setFileId($transferOwnership->getFileId()); - $newTransferOwnership->setSourceUser($transferOwnership->getSourceUser()); - $newTransferOwnership->setTargetUser($transferOwnership->getTargetUser()); - $this->mapper->insert($newTransferOwnership); - $this->jobList->add(TransferOwnership::class, [ - 'id' => $newTransferOwnership->getId(), + 'id' => $transferOwnership->getId(), ]); $notification = $this->notificationManager->createNotification(); |