wrong position of counter reset

extrafields will work now ;) and not the first product gets the last extrafields values
This commit is contained in:
Jan 2018-08-09 20:57:32 +02:00 committed by GitHub
parent 61d7629ab1
commit c007ea62a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1048,11 +1048,11 @@ function getProductsForCategory($authentication,$id,$lang='')
$res = $db->query($sql);
if ($res)
{
$iProduct = 0;
while ($rec = $db->fetch_array($res))
{
$obj = new Product($db);
$obj->fetch($rec['fk_'.$field]);
$iProduct = 0;
if($obj->status > 0 )
{
$dir = (!empty($conf->product->dir_output)?$conf->product->dir_output:$conf->service->dir_output);