Fixed exceptions on build page, when BOM contained non-part entries.

This commit is contained in:
Jan Böhmer 2023-01-22 17:37:01 +01:00
parent bc9ed770ad
commit 015c71cbd2
2 changed files with 4 additions and 2 deletions

View file

@ -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) {