From 6791d23032b26d3aca1e329693f71c4927104c47 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Oct 2012 18:21:12 +0200 Subject: [PATCH] Fix: use asterisk for define the percentage --- htdocs/societe/class/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 048d7da7d8a..2436435d492 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -876,7 +876,7 @@ class Societe extends CommonObject foreach($filters as $field => $value) { if (! $exact) - $value = '%'.str_replace('*', '%', $value).'%'; + $value = str_replace('*', '%', $value); if (! $case) $sql.= " ".$clause." ".$field." LIKE '".$this->db->escape($value)."'"; else