diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 97b0dd9f9c1..bc8cd6e16ce 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -143,7 +143,7 @@ if ($account || $_GET["ref"]) } else { - $viewline = 20; + $viewline = empty($conf->global->MAIN_SIZE_LISTE_LIMIT)?20:$conf->global->MAIN_SIZE_LISTE_LIMIT; } $acct = new Account($db); if ($account) @@ -212,7 +212,7 @@ if ($account || $_GET["ref"]) } if ($thirdparty) { - $sql_rech.=" AND (COALESCE(s.nom,'') LIKE '%".$db->escape($thirdparty)."%')"; + $sql_rech.=" AND s.nom LIKE '%".$db->escape($thirdparty)."%')"; $param.='&thirdparty='.urlencode($thirdparty); $mode_search = 1; } @@ -273,6 +273,7 @@ if ($account || $_GET["ref"]) $page = 0; $limitsql = $nbline; } + //print $limitsql.'-'.$page.'-'.$viewline; // Onglets $head=bank_prepare_head($acct); @@ -307,6 +308,7 @@ if ($account || $_GET["ref"]) $navig=''; $navig.='
'; - + //var_dump($navig); // Confirmation delete if ($action == 'delete') @@ -340,7 +342,7 @@ if ($account || $_GET["ref"]) print '| '.$navig.' |