Update api_products.class.php
This commit is contained in:
parent
9d1915f9c2
commit
5d9c87a9ea
@ -462,8 +462,8 @@ class Products extends DolibarrApi
|
|||||||
|
|
||||||
$childsArbo = $this->product->getChildsArbo($id, 1);
|
$childsArbo = $this->product->getChildsArbo($id, 1);
|
||||||
|
|
||||||
$keys = ['rowid','qty', 'fk_product_type', 'label', 'incdec','ref'];
|
$keys = array('rowid','qty', 'fk_product_type', 'label', 'incdec','ref');
|
||||||
$childs = [];
|
$childs = array();
|
||||||
foreach ($childsArbo as $values) {
|
foreach ($childsArbo as $values) {
|
||||||
$childs[] = array_combine($keys, $values);
|
$childs[] = array_combine($keys, $values);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user