diff --git a/api/src/Etemplate/Widget/Url.php b/api/src/Etemplate/Widget/Url.php index 549efd9733..73352b1aed 100644 --- a/api/src/Etemplate/Widget/Url.php +++ b/api/src/Etemplate/Widget/Url.php @@ -137,8 +137,8 @@ class Url extends Etemplate\Widget public static function ajax_contact($_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); } }