forked from extern/egroupware
* Addressbook: lettersearch was not working for addressbooks in LDAP if PostgreSQL database was used
wrong parsing of sql query to construct LDAP query
This commit is contained in:
parent
f9444ae1cd
commit
4c24ac26b2
@ -767,7 +767,7 @@ class addressbook_ldap
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// filter for letter-search
|
// filter for letter-search
|
||||||
elseif (preg_match("/^([^ ]+) I?LIKE '(.*)%'$/",$value,$matches))
|
elseif (preg_match("/^([^ ]+) ".preg_quote($GLOBALS['egw']->db->capabilities[egw_db::CAPABILITY_CASE_INSENSITIV_LIKE])." '(.*)%'$/",$value,$matches))
|
||||||
{
|
{
|
||||||
list(,$name,$value) = $matches;
|
list(,$name,$value) = $matches;
|
||||||
if (strpos($name,'.') !== false) list(,$name) = explode('.',$name);
|
if (strpos($name,'.') !== false) list(,$name) = explode('.',$name);
|
||||||
|
Loading…
Reference in New Issue
Block a user