Merge pull request #26980 from nextcloud/bugfix/noid/partfile-move-storage

Use parent wrapper to properly handle moves on the same source/target storage
This commit is contained in:
Roeland Jago Douma 2021-05-18 10:20:20 +02:00 committed by GitHub
commit 9e1c367e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();