mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 14:23:17 -04:00
Merge pull request #36360 from nextcloud/new-share-existing-node
also set the node when re-using existing share on share create
This commit is contained in:
commit
9d3c8b7e70
1 changed files with 4 additions and 0 deletions
|
|
@ -825,7 +825,11 @@ class Manager implements IManager {
|
|||
}
|
||||
} catch (AlreadySharedException $e) {
|
||||
// if a share for the same target already exists, dont create a new one, but do trigger the hooks and notifications again
|
||||
$oldShare = $share;
|
||||
|
||||
// Reuse the node we already have
|
||||
$share = $e->getExistingShare();
|
||||
$share->setNode($oldShare->getNode());
|
||||
}
|
||||
|
||||
// Post share event
|
||||
|
|
|
|||
Loading…
Reference in a new issue