Merge pull request #27016 from nextcloud/backport/26980-stable20

[stable20] Use parent wrapper to properly handle moves on the same source/target storage
This commit is contained in:
blizzz 2021-06-23 12:56:01 +02:00 committed by GitHub
commit 369cb6f252
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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