summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-14 09:41:01 +0200
committerJulius Härtl <jus@bitgrid.net>2021-05-18 16:14:41 +0200
commit553f8aff6b10bbb485ff3d3f0ec31801e2a66e51 (patch)
tree6bb42c7ae24f9c5dbf424951ada683deac8204ce /apps/files_trashbin
parentc6af693dac0d5804901c969a6a8e821dcd2efac6 (diff)
downloadnextcloud-server-553f8aff6b10bbb485ff3d3f0ec31801e2a66e51.tar.gz
nextcloud-server-553f8aff6b10bbb485ff3d3f0ec31801e2a66e51.zip
Use parent wrapper to properly handle moves on the same source/target storage
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 08dc052fa5c..415f8a183b2 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -237,7 +237,7 @@ class Storage extends Wrapper {
/** @var Storage $sourceStorage */
$sourceStorage->disableTrash();
}
- $result = $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
+ $result = parent::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
if ($sourceIsTrashbin) {
/** @var Storage $sourceStorage */
$sourceStorage->enableTrash();