From 0c2dce372f71b5c7e6ebc55ad1318a3acb94d2df Mon Sep 17 00:00:00 2001 From: javieralapps4up Date: Thu, 9 Dec 2021 11:24:03 +0100 Subject: [PATCH] FIX In the card of a direct debit FIX In the card of a direct debit, if you change the limit, it gets disordered and vice versa --- htdocs/compta/prelevement/card.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/compta/prelevement/card.php b/htdocs/compta/prelevement/card.php index 8a232377ab7..95d30becd03 100644 --- a/htdocs/compta/prelevement/card.php +++ b/htdocs/compta/prelevement/card.php @@ -382,6 +382,9 @@ if ($id > 0 || $ref) { $i = 0; $urladd = "&id=".urlencode($id); + if ($limit > 0 && $limit != $conf->liste_limit) { + $urladd .= '&limit='.urlencode($limit); + } print '
'."\n"; print ''; @@ -392,6 +395,12 @@ if ($id > 0 || $ref) { if (!empty($limit)) { print ''; } + if (!empty($sortfield)) { + print ''; + } + if (!empty($sortorder)) { + print ''; + } print_barre_liste($langs->trans("Lines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '', 0, '', '', $limit); print '
'; // You can use div-table-responsive-no-min if you dont need reserved height for your table