FIX api product with subproduct
This commit is contained in:
parent
cd491280cf
commit
b18b049dca
@ -479,7 +479,7 @@ class Products extends DolibarrApi
|
||||
|
||||
$childsArbo = $this->product->getChildsArbo($id, 1);
|
||||
|
||||
$keys = array('rowid', 'qty', 'fk_product_type', 'label', 'incdec', 'ref');
|
||||
$keys = array('rowid', 'qty', 'fk_product_type', 'label', 'incdec', 'ref', 'fk_association', 'rang');
|
||||
$childs = array();
|
||||
foreach ($childsArbo as $values) {
|
||||
$childs[] = array_combine($keys, $values);
|
||||
@ -2049,7 +2049,7 @@ class Products extends DolibarrApi
|
||||
if ($includesubproducts) {
|
||||
$childsArbo = $this->product->getChildsArbo($id, 1);
|
||||
|
||||
$keys = array('rowid', 'qty', 'fk_product_type', 'label', 'incdec');
|
||||
$keys = array('rowid', 'qty', 'fk_product_type', 'label', 'incdec', 'ref', 'fk_association', 'rang');
|
||||
$childs = array();
|
||||
foreach ($childsArbo as $values) {
|
||||
$childs[] = array_combine($keys, $values);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user