From 1db9cdac287860818c2a1f4c2207e886df8e7296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Wed, 4 Sep 2013 16:26:00 +0200 Subject: [PATCH] Fixed pagination --- htdocs/product/stock/replenish.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 7f93c77878f..27e5e104160 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -231,9 +231,10 @@ if ($resql) { $head[1][1] = $langs->trans("ReplenishmentOrders"); $head[1][2] = 'replenishorders'; dol_fiche_head($head, 'replenish', $langs->trans('Replenishment'), 0, 'stock'); - if ($sref || $snom || $sall || GETPOST('search', 'alpha')) { + if ($sref || $snom || $sall || $salert || GETPOST('search', 'alpha')) { $filters = '&sref=' . $sref . '&snom=' . $snom; - $filters .= '&sall=' . $sall . '&salert=' . $salert; + $filters .= '&sall=' . $sall; + $filters .= '&salert=' . $salert; print_barre_liste($texte, $page, 'replenish.php', @@ -244,9 +245,10 @@ if ($resql) { $num ); } else { - $filters = '&sref=' . $sref . '&snom=' . $snom . '&salert=' . $salert; + $filters = '&sref=' . $sref . '&snom=' . $snom; $filters .= '&fourn_id=' . $fourn_id; - $filters .= (isset($type)?'&type=' . $type:''); + $filters .= (isset($type)?'&type=' . $type:''); + $filters .= '&salert=' . $salert; print_barre_liste($texte, $page, 'replenish.php', @@ -506,9 +508,10 @@ if ($resql) { ''; if ($num > $conf->liste_limit) { - if ($sref || $snom || $sall || GETPOST('search', 'alpha')) { + if ($sref || $snom || $sall || $salert || GETPOST('search', 'alpha')) { $filters = '&sref=' . $sref . '&snom=' . $snom; - $filters .= '&sall=' . $sall; + $filters .= '&sall=' . $sall; + $filters .= '&salert=' . $salert; print_barre_liste('', $page, 'replenish.php', @@ -523,7 +526,8 @@ if ($resql) { } else { $filters = '&sref=' . $sref . '&snom=' . $snom; $filters .= '&fourn_id=' . $fourn_id; - $filters .= (isset($type)? '&type=' . $type : ''); + $filters .= (isset($type)? '&type=' . $type : ''); + $filters .= '&salert=' . $salert; print_barre_liste('', $page, 'replenish.php',