mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Fix duplicate contacts detection not working any more
This commit is contained in:
parent
eed6b18e3d
commit
39c37afb6a
@ -2471,7 +2471,7 @@ window.egw_LAB.wait(function() {
|
|||||||
// if email changed, check for doublicates
|
// if email changed, check for doublicates
|
||||||
if (in_array($name, array('email', 'email_home')))
|
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(
|
$contacts = parent::search(array(
|
||||||
'email' => $values[$name],
|
'email' => $values[$name],
|
||||||
|
Loading…
Reference in New Issue
Block a user