Browse Source

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

Use parent wrapper to properly handle moves on the same source/target storage
pull/27024/head
Roeland Jago Douma 5 years ago
committed by GitHub
parent
commit
9e1c367e86
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files_trashbin/lib/Storage.php

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

Loading…
Cancel
Save