Fix: add not exact method
This commit is contained in:
parent
9f43d8613c
commit
337cb0faa5
@ -871,6 +871,8 @@ class Societe extends CommonObject
|
|||||||
{
|
{
|
||||||
foreach($filters as $field => $value)
|
foreach($filters as $field => $value)
|
||||||
{
|
{
|
||||||
|
if (! $exact)
|
||||||
|
$value = '%'.str_replace('*', '%', $value).'%';
|
||||||
if (! $case)
|
if (! $case)
|
||||||
$sql.= " AND ".$field." LIKE '".$this->db->escape($value)."'";
|
$sql.= " AND ".$field." LIKE '".$this->db->escape($value)."'";
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user