Associate project BOM entries with correct project when cloning

This commit is contained in:
buchmann 2023-11-16 11:05:01 +01:00
parent 5cfccab671
commit a3f2f00830

View file

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