Use parent wrapper to properly handle moves on the same source/target storage

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2021-05-14 09:41:01 +02:00
parent 18dd1177c7
commit ccfd28cbc3
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ class Storage extends Wrapper {
/** @var Storage $sourceStorage */ /** @var Storage $sourceStorage */
$sourceStorage->disableTrash(); $sourceStorage->disableTrash();
} }
$result = $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath); $result = parent::moveFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath);
if ($sourceIsTrashbin) { if ($sourceIsTrashbin) {
/** @var Storage $sourceStorage */ /** @var Storage $sourceStorage */
$sourceStorage->enableTrash(); $sourceStorage->enableTrash();