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
This commit is contained in:
parent
b024bf20ed
commit
0c2dce372f
@ -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 '<form method="get" action="'.$_SERVER ['PHP_SELF'].'" name="search_form">'."\n";
|
||||
print '<input type="hidden" name="id" value="'.$id.'"/>';
|
||||
@ -392,6 +395,12 @@ if ($id > 0 || $ref) {
|
||||
if (!empty($limit)) {
|
||||
print '<input type="hidden" name="limit" value="'.$limit.'"/>';
|
||||
}
|
||||
if (!empty($sortfield)) {
|
||||
print '<input type="hidden" name="sortfield" value="'.$sortfield.'"/>';
|
||||
}
|
||||
if (!empty($sortorder)) {
|
||||
print '<input type="hidden" name="sortorder" value="'.$sortorder.'"/>';
|
||||
}
|
||||
print_barre_liste($langs->trans("Lines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num, $nbtotalofrecords, '', 0, '', '', $limit);
|
||||
|
||||
print '<div class="div-table-responsive-no-min">'; // You can use div-table-responsive-no-min if you dont need reserved height for your table
|
||||
|
||||
Loading…
Reference in New Issue
Block a user