Fix overwriting parameter
Fixes #2641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
e56501420d
commit
f55b0e64f0
|
@ -115,9 +115,9 @@ class SharedMount extends MountPoint implements MoveableMount {
|
||||||
private function updateFileTarget($newPath, &$share) {
|
private function updateFileTarget($newPath, &$share) {
|
||||||
$share->setTarget($newPath);
|
$share->setTarget($newPath);
|
||||||
|
|
||||||
foreach ($this->groupedShares as $share) {
|
foreach ($this->groupedShares as $tmpShare) {
|
||||||
$share->setTarget($newPath);
|
$tmpShare->setTarget($newPath);
|
||||||
\OC::$server->getShareManager()->moveShare($share, $this->user);
|
\OC::$server->getShareManager()->moveShare($tmpShare, $this->user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue