mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 12:54:24 -04:00
Merge pull request #2659 from nextcloud/fix_2641
Fix overwriting parameter
This commit is contained in:
commit
4f96fcfb9d
1 changed files with 3 additions and 3 deletions
|
|
@ -115,9 +115,9 @@ class SharedMount extends MountPoint implements MoveableMount {
|
|||
private function updateFileTarget($newPath, &$share) {
|
||||
$share->setTarget($newPath);
|
||||
|
||||
foreach ($this->groupedShares as $share) {
|
||||
$share->setTarget($newPath);
|
||||
\OC::$server->getShareManager()->moveShare($share, $this->user);
|
||||
foreach ($this->groupedShares as $tmpShare) {
|
||||
$tmpShare->setTarget($newPath);
|
||||
\OC::$server->getShareManager()->moveShare($tmpShare, $this->user);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue