Skip to content
Snippets Groups Projects
Commit 7660d846 authored by Juanjo Menent's avatar Juanjo Menent
Browse files

Merge pull request #3263 from GPCsolutions/dolibarr3.7-3262

FIX #3262 Webservice getProductsForCategory()
parents 1a61ab05 953a21b5
No related branches found
No related tags found
No related merge requests found
......@@ -994,11 +994,11 @@ function getProductsForCategory($authentication,$id,$lang='')
$extrafields=new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label('product',true);
//Get extrafield values
$product->fetch_optionals($obj->id,$extralabels);
$obj->fetch_optionals($obj->id,$extralabels);
foreach($extrafields->attribute_label as $key=>$label)
{
$products[$iProduct]=array_merge($products[$iProduct],array('options_'.$key => $product->array_options['options_'.$key]));
$products[$iProduct]=array_merge($products[$iProduct],array('options_'.$key => $obj->array_options['options_'.$key]));
}
$iProduct++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment