mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Fixed exceptions on build page, when BOM contained non-part entries.
This commit is contained in:
parent
bc9ed770ad
commit
015c71cbd2
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue