mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #27015 from nextcloud/backport/26980-stable21
[stable21] Use parent wrapper to properly handle moves on the same source/target storage
This commit is contained in:
commit
a18a3fe79e
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue