From 085dee1ab1a52c5641312b9793925d5c8af6a2ec Mon Sep 17 00:00:00 2001 From: fhenry Date: Tue, 15 Jan 2013 23:00:17 +0100 Subject: [PATCH] Fix Bug [ bug #692 ] Can't search for suppliers invoice --- htdocs/fourn/facture/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 9b0901e4ed7..33fcaab84e8 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -126,7 +126,7 @@ if ($_GET["filtre"]) if (GETPOST("search_ref")) { - $sql .= " AND fac.rowid like '%".$db->escape(GETPOST("search_ref"))."%'"; + $sql .= " AND fac.rowid = ".$db->escape(GETPOST("search_ref")); } if (GETPOST("search_ref_supplier")) {