Update api_products.class.php

This commit is contained in:
Laurent Destailleur 2021-10-06 13:42:13 +02:00 committed by GitHub
parent 9d1915f9c2
commit 5d9c87a9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,8 +462,8 @@ class Products extends DolibarrApi
$childsArbo = $this->product->getChildsArbo($id, 1);
$keys = ['rowid','qty', 'fk_product_type', 'label', 'incdec','ref'];
$childs = [];
$keys = array('rowid','qty', 'fk_product_type', 'label', 'incdec','ref');
$childs = array();
foreach ($childsArbo as $values) {
$childs[] = array_combine($keys, $values);
}