remove some more prefixes

This commit is contained in:
Ralf Becker 2019-07-18 15:43:39 +02:00
parent 15d8e0d422
commit b433ed7037

View File

@ -821,9 +821,10 @@ class Ldap
}
foreach($this->schema2egw as $mapping)
{
if (substr($egwSearchKey, 0, 8) === 'contact_')
$matches = null;
if (preg_match('/^(egw_addressbook\.)?(contact_)?(.*)$/', $egwSearchKey, $matches))
{
$egwSearchKey = substr($egwSearchKey, 8);
$egwSearchKey = $matches[3];
}
if(($ldapSearchKey = $mapping[$egwSearchKey]))
{