Fix possibly wrong error message when contact with the same email exists on move/copy

pull/164/merge
Aleksander Machniak 11 years ago
parent f22de58087
commit eed897ca03

@ -88,9 +88,9 @@ foreach ($cids as $source => $cid) {
} }
} }
else { else {
$record = $result->first(); $record = $result->first();
$ids[] = $record['ID']; $ids[] = $record['ID'];
$errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists'; $errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
} }
} }

@ -97,9 +97,9 @@ foreach ($cids as $source => $source_cids) {
} }
} }
else { else {
$record = $result->first(); $record = $result->first();
$ids[] = $record['ID']; $ids[] = $record['ID'];
$errormsg = empty($a_record['email']) ? 'contactnameexists' : 'contactexists'; $errormsg = empty($email) ? 'contactnameexists' : 'contactexists';
} }
} }

Loading…
Cancel
Save