Fix #19070 : Api subproducts was returning false

This commit is contained in:
Maxime Kohlhaas 2021-10-23 02:28:53 +02:00
parent f1565bb283
commit 604052d1a1

View File

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