mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Try to narrow down search criteria to only email and email_home columns
This commit is contained in:
parent
81ddb509a0
commit
3a51767b67
@ -137,8 +137,8 @@ class Url extends Etemplate\Widget
|
|||||||
public static function ajax_contact($_email)
|
public static function ajax_contact($_email)
|
||||||
{
|
{
|
||||||
$email = \EGroupware\Api\Mail::stripRFC822Addresses(array($_email));
|
$email = \EGroupware\Api\Mail::stripRFC822Addresses(array($_email));
|
||||||
$result = $GLOBALS['egw']->contacts->search($email[0]);
|
$result = $GLOBALS['egw']->contacts->search($email[0], array('email','email_home'),
|
||||||
|
'', '', '', false, 'OR', false, array('cols_to_search' => array('email','email_home')));
|
||||||
\EGroupware\Api\Json\Response::data($result ? true : false);
|
\EGroupware\Api\Json\Response::data($result ? true : false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user