Merge pull request #18909 from FHenry/14_fix_api_priduct_warning
fix: fix php warning API REST products/{id}/subproducts
This commit is contained in:
commit
f81be7db13
@ -462,7 +462,7 @@ class Products extends DolibarrApi
|
||||
|
||||
$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');
|
||||
$childs = array();
|
||||
foreach ($childsArbo as $values) {
|
||||
$childs[] = array_combine($keys, $values);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user