diff --git a/src/Services/ProjectSystem/ProjectBuildHelper.php b/src/Services/ProjectSystem/ProjectBuildHelper.php index 73825f98..d18e1767 100644 --- a/src/Services/ProjectSystem/ProjectBuildHelper.php +++ b/src/Services/ProjectSystem/ProjectBuildHelper.php @@ -146,7 +146,7 @@ class ProjectBuildHelper $message = $buildRequest->getComment(); $message .= ' (Project build: '.$buildRequest->getProject()->getName().')'; - foreach ($buildRequest->getBomEntries() as $bom_entry) { + foreach ($buildRequest->getPartBomEntries() as $bom_entry) { foreach ($buildRequest->getPartLotsForBOMEntry($bom_entry) as $part_lot) { $amount = $buildRequest->getLotWithdrawAmount($part_lot); if ($amount > 0) { diff --git a/templates/Projects/build/_form.html.twig b/templates/Projects/build/_form.html.twig index 659a73ff..b6c13fa1 100644 --- a/templates/Projects/build/_form.html.twig +++ b/templates/Projects/build/_form.html.twig @@ -18,7 +18,7 @@ {% for bom_entry in build_request.bomEntries %} {# 1st row basic infos about the BOM entry #} - +
@@ -28,6 +28,8 @@ {% if bom_entry.part %} {{ bom_entry.part.name }} {% if bom_entry.name %}({{ bom_entry.name }}){% endif %} + {% else %} + {{ bom_entry.name }} {% endif %}