mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-15 22:11:36 +01:00
Fix when limit = 0
Look and feel v11
This commit is contained in:
@@ -4275,7 +4275,9 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
|
||||
}
|
||||
}
|
||||
|
||||
print_fleche_navigation($page, $file, $options, $nextpage, $pagelist, $morehtmlright, $savlimit, $totalnboflines, $hideselectlimit); // output the div and ul for previous/last completed with page numbers into $pagelist
|
||||
if ($savlimit) {
|
||||
print_fleche_navigation($page, $file, $options, $nextpage, $pagelist, $morehtmlright, $savlimit, $totalnboflines, $hideselectlimit); // output the div and ul for previous/last completed with page numbers into $pagelist
|
||||
}
|
||||
|
||||
print '</td>';
|
||||
|
||||
@@ -4317,7 +4319,6 @@ function print_fleche_navigation($page, $file, $options = '', $nextpage = 0, $be
|
||||
$tmpkey = $conf->liste_limit.':'.$conf->liste_limit;
|
||||
if (!in_array($tmpkey, $tmpchoice)) $tmpchoice[] = $tmpkey;
|
||||
asort($tmpchoice, SORT_NUMERIC);
|
||||
$found = false;
|
||||
foreach ($tmpchoice as $val)
|
||||
{
|
||||
$selected = '';
|
||||
@@ -4329,7 +4330,6 @@ function print_fleche_navigation($page, $file, $options = '', $nextpage = 0, $be
|
||||
if ((int) $key == (int) $limit)
|
||||
{
|
||||
$selected = ' selected="selected"';
|
||||
$found = true;
|
||||
}
|
||||
print '<option name="'.$key.'"'.$selected.'>'.dol_escape_htmltag($val).'</option>'."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user