Browse Source

Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-shares

Transfer shares if no path provided
tags/v20.0.0beta4
Joas Schilling 3 years ago
parent
commit
f0b46ea605
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apps/files/lib/Service/OwnershipTransferService.php

+ 2
- 2
apps/files/lib/Service/OwnershipTransferService.php View File

@@ -247,7 +247,7 @@ class OwnershipTransferService {
private function collectUsersShares(string $sourceUid,
OutputInterface $output,
View $view,
?string $path = null): array {
string $path): array {
$output->writeln("Collecting all share information for files and folders of $sourceUid ...");

$shares = [];
@@ -260,7 +260,7 @@ class OwnershipTransferService {
if (empty($sharePage)) {
break;
}
if ($path !== null) {
if ($path !== "$sourceUid/files") {
$sharePage = array_filter($sharePage, function (IShare $share) use ($view, $path) {
try {
$relativePath = $view->getPath($share->getNodeId());

Loading…
Cancel
Save