diff --git a/htdocs/product/liste.php b/htdocs/product/liste.php index f5e6581d804..1a7cba82d68 100644 --- a/htdocs/product/liste.php +++ b/htdocs/product/liste.php @@ -442,18 +442,12 @@ else $i++; } - if ($num > $conf->liste_limit) - { - if ($sref || $snom || $sall || $sbarcode || GETPOST('search')) - { - print_barre_liste('', $page, "liste.php", "&sref=".$sref."&snom=".$snom."&sall=".$sall."&tosell=".$tosell."&tobuy=".$tobuy, $sortfield, $sortorder,'',$num); - } - else - { - print_barre_liste('', $page, "liste.php", "&sref=$sref&snom=$snom&fourn_id=$fourn_id".(isset($type)?"&type=$type":"")."&tosell=".$tosell."&tobuy=".$tobuy, $sortfield, $sortorder,'',$num); - } - } - + $param="&sref=".$sref.($sbarcode?"&sbarcode=".$sbarcode:"")."&snom=".$snom."&sall=".$sall."&tosell=".$tosell."&tobuy=".$tobuy; + $param.=($fourn_id?"&fourn_id=".$fourn_id:""); + $param.=($search_categ?"&search_categ=".$search_categ:""); + $param.=isset($type)?"&type=".$type:""; + print_barre_liste('', $page, "liste.php", $param, $sortfield, $sortorder,'',$num); + $db->free($resql); print "";