ProductionScheduler: add components while walking through tree
This commit is contained in:
@@ -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']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user