ProductionScheduler: add components while walking through tree

This commit is contained in:
Michał Zieliński
2025-07-15 16:32:35 +02:00
parent cb62096d9b
commit 0068e3beec

View File

@@ -405,6 +405,11 @@ HAVING
)
);
} else {
// always add component to response
$response[] = array(
'ecmproduct_id' => $productId,
'quantity' => $quantity
);
while ($c = $db->fetchByAssoc($crows)) {
$response = array_merge($response, getProductComponents($c['ecmcomponent_id'], $quantity * $c['quantity']));
}