* Addressbook - Fix duplicate detection when editing contact

This commit is contained in:
nathangray 2018-01-24 09:10:45 -07:00
parent 84cc2bedc8
commit 16a4d95b1c
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ class addressbook_hooks
'values' => $duplicate_options,
'help' => 'Fields to consider when looking for duplicate contacts.',
'admin' => false,
'default' => 'n_family, org_name, contact_email'
'default' => 'n_family,org_name,contact_email'
);
$settings['duplicate_threshold'] = array(
'type' => 'input',

View File

@ -2626,7 +2626,7 @@ window.egw_LAB.wait(function() {
$specified_count = 0;
foreach($fields as $field)
{
if($values[$field])
if($values[trim($field)])
{
$specified_count++;
}