mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix overwriting parameter
Fixes #2641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
03b648be13
commit
9e353f6289
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