Fix duplicate contacts detection not working any more

This commit is contained in:
Hadi Nategh 2016-06-20 10:03:03 +02:00
parent eed6b18e3d
commit 39c37afb6a

View File

@ -2471,7 +2471,7 @@ window.egw_LAB.wait(function() {
// if email changed, check for doublicates
if (in_array($name, array('email', 'email_home')))
{
if (preg_match('/^'.Etemplate\Widget\Url::EMAIL_PREG.'$/i', $values[$name])) // only search for real email addresses, to not return to many contacts
if (preg_match(Etemplate\Widget\Url::EMAIL_PREG, $values[$name])) // only search for real email addresses, to not return to many contacts
{
$contacts = parent::search(array(
'email' => $values[$name],