Associate project BOM entries with correct project when cloning (#433)

This commit is contained in:
d-buchmann 2023-11-16 12:56:42 +01:00 committed by GitHub
parent 5cfccab671
commit 0fa03d8bb0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ class Project extends AbstractStructuralDBElement
//Set master attachment is needed //Set master attachment is needed
foreach ($bom_entries as $bom_entry) { foreach ($bom_entries as $bom_entry) {
$clone = clone $bom_entry; $clone = clone $bom_entry;
$this->bom_entries->add($clone); $this->addBomEntry($clone);
} }
} }