From c007ea62a7efa7a3c8a0e972fb2715b6cc47ba43 Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 9 Aug 2018 20:57:32 +0200 Subject: [PATCH] wrong position of counter reset extrafields will work now ;) and not the first product gets the last extrafields values --- htdocs/webservices/server_productorservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/webservices/server_productorservice.php b/htdocs/webservices/server_productorservice.php index f6c98599d93..2154d2d8557 100644 --- a/htdocs/webservices/server_productorservice.php +++ b/htdocs/webservices/server_productorservice.php @@ -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);