diff --git a/htdocs/fourn/facture/index.php b/htdocs/fourn/facture/index.php index 089033fafce..b6cb75e4125 100644 --- a/htdocs/fourn/facture/index.php +++ b/htdocs/fourn/facture/index.php @@ -126,7 +126,7 @@ if (GETPOST('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")) {