reuse share node when creating a share
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
7d1e800c15
commit
240538d9e6
|
@ -614,8 +614,11 @@ class Manager implements IManager {
|
||||||
throw new \Exception($error);
|
throw new \Exception($error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$oldShare = $share;
|
||||||
$provider = $this->factory->getProviderForType($share->getShareType());
|
$provider = $this->factory->getProviderForType($share->getShareType());
|
||||||
$share = $provider->create($share);
|
$share = $provider->create($share);
|
||||||
|
//reuse the node we already have
|
||||||
|
$share->setNode($oldShare->getNode());
|
||||||
|
|
||||||
// Post share hook
|
// Post share hook
|
||||||
$postHookData = [
|
$postHookData = [
|
||||||
|
|
Loading…
Reference in New Issue