Skip to content

Commit

Permalink
31780: Inserting several linked objects via Clipboard
Browse files Browse the repository at this point in the history
  • Loading branch information
alex40724 committed Nov 2, 2024
1 parent d5edd3b commit a6a9023
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Services/Container/classes/class.ilContainerGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1759,11 +1759,10 @@ public function pasteObject(): void
// get subnodes of top nodes
$subnodes[$ref_id] = $this->tree->getSubTree($top_node);
}

// now move all subtrees to new location
foreach ($subnodes as $key => $subnode) {
// first paste top_node....
$obj_data = ilObjectFactory::getInstanceByRefId($ref_id);
$obj_data = ilObjectFactory::getInstanceByRefId($key);
$new_ref_id = $obj_data->createReference();
$obj_data->putInTree($this->requested_ref_id);
$obj_data->setPermissions($this->requested_ref_id);
Expand Down

0 comments on commit a6a9023

Please sign in to comment.