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:
Laurent Destailleur 2021-10-06 13:43:37 +02:00 committed by GitHub
commit f81be7db13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);