Skip to content
Snippets Groups Projects
Unverified Commit 557c4966 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #19981 from nextcloud/enh/reset_target_if_null_after_share

Update the target when it isempty after sharing
parents 7d5b0c29 b944115a
No related branches found
No related tags found
No related merge requests found
......@@ -784,6 +784,11 @@ class Manager implements IManager {
//reuse the node we already have
$share->setNode($oldShare->getNode());
// Reset the target if it is null for the new share
if ($share->getTarget() === '') {
$share->setTarget($target);
}
// Post share event
$event = new GenericEvent($share);
$this->legacyDispatcher->dispatch('OCP\Share::postShare', $event);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment