From 256c479c884c49febb50e74bf0cbce34028017e4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 11 Dec 2007 18:56:08 +0000 Subject: [PATCH] Fix: Echec du filtre sur montant des transactions bancaires --- htdocs/compta/bank/account.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 0800fed2496..fd42b9457eb 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -130,9 +130,9 @@ if ($account || $_GET["ref"]) $viewline = 20; } $acct = new Account($db); - if ($_GET["account"]) + if ($account) { - $result=$acct->fetch($_GET["account"]); + $result=$acct->fetch($account); } if ($_GET["ref"]) { @@ -266,7 +266,7 @@ if ($account || $_GET["ref"]) * Bandeau recherche */ - // Define navigation string + // Define transaction list navigation string $navig=''; $navig.='
'; $nbpage=floor($total_lines/$viewline)+($total_lines % $viewline > 0?1:0); // Nombre de page total @@ -644,7 +644,7 @@ if ($account || $_GET["ref"]) } // Affichage total - if ($page == 0 && $action != 'search') + if ($page == 0 && ! $mode_search) { print ''.$langs->trans("CurrentBalance").''; print ''.price($total).'';