forked from extern/egroupware
if search pattern alread contains a wildcard, do NOT add further ones automatic (eg. in extended search in addressbook)
This commit is contained in:
parent
9bca389162
commit
30ce2262dd
@ -830,6 +830,11 @@ class so_sql
|
|||||||
elseif ($wildcard || $criteria[$col][0] == '!' ||
|
elseif ($wildcard || $criteria[$col][0] == '!' ||
|
||||||
is_string($criteria[$col]) && (strpos($criteria[$col],'*')!==false || strpos($criteria[$col],'?')!==false))
|
is_string($criteria[$col]) && (strpos($criteria[$col],'*')!==false || strpos($criteria[$col],'?')!==false))
|
||||||
{
|
{
|
||||||
|
// if search pattern alread contains a wildcard, do NOT add further ones automatic
|
||||||
|
if (is_string($criteria[$col]) && (strpos($criteria[$col],'*')!==false || strpos($criteria[$col],'?')!==false))
|
||||||
|
{
|
||||||
|
$wildcard = '';
|
||||||
|
}
|
||||||
$cmp_op = ' '.$this->db->capabilities['case_insensitive_like'].' ';
|
$cmp_op = ' '.$this->db->capabilities['case_insensitive_like'].' ';
|
||||||
$negate = false;
|
$negate = false;
|
||||||
if ($criteria[$col][0] == '!')
|
if ($criteria[$col][0] == '!')
|
||||||
|
Loading…
Reference in New Issue
Block a user