mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-11 18:02:59 +01:00
Fixed exceptions on build page, when BOM contained non-part entries.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user