BeforeCopy, take adjusted parent (clear, change) into account

Uncategorized

In a before copy event, the parent is also given. When adjusting the parent, by changing it or removing the parent for the item, the copied item was still linked to the "original" item. Now the parent, linked to the item, is taken into account.