From e5085b2a1c91fbda221d5e7594447b9acc8dd451 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Thu, 4 Apr 2013 20:19:42 +0200 Subject: [PATCH] Fix : filter on payment type was not working (int instead of char) --- htdocs/compta/paiement/liste.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/paiement/liste.php b/htdocs/compta/paiement/liste.php index 7e1cf15c206..db2b3173a1c 100644 --- a/htdocs/compta/paiement/liste.php +++ b/htdocs/compta/paiement/liste.php @@ -110,7 +110,7 @@ else // Search criteria if (GETPOST("search_ref")) $sql .=" AND p.rowid=".GETPOST("search_ref",'int'); if (GETPOST("search_account") > 0) $sql .=" AND b.fk_account=".GETPOST("search_account",'int'); - if (GETPOST("search_paymenttype") > 0) $sql .=" AND c.code='".GETPOST("search_paymenttype",'int')."'"; + if (GETPOST("search_paymenttype") != "") $sql .=" AND c.code='".GETPOST("search_paymenttype")."'"; if (GETPOST("search_amount")) $sql .=" AND p.amount=".price2num(GETPOST("search_amount")); if (GETPOST("search_company")) $sql .=" AND s.nom LIKE '%".$db->escape(GETPOST("search_company"))."%'"; }