diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 3971270c6d3..14e2e8d1a3f 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -871,6 +871,8 @@ class Societe extends CommonObject { foreach($filters as $field => $value) { + if (! $exact) + $value = '%'.str_replace('*', '%', $value).'%'; if (! $case) $sql.= " AND ".$field." LIKE '".$this->db->escape($value)."'"; else