From 337cb0faa50095e36fb7447424c3696948908f49 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Oct 2012 17:47:58 +0200 Subject: [PATCH] Fix: add not exact method --- htdocs/societe/class/societe.class.php | 2 ++ 1 file changed, 2 insertions(+) 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