Merge pull request #19695 from atm-maxime/fix_user_from_candidate

Fix #19672 : email unicity was checked when email was null
This commit is contained in:
Laurent Destailleur 2021-12-30 13:17:49 +01:00 committed by GitHub
commit 63f2cd6a30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,6 +260,8 @@ if (empty($reshook)) {
$nuser->employee = 1;
$nuser->firstname = $object->firstname;
$nuser->lastname = $object->lastname;
$nuser->email = '';
$nuser->personal_email = $object->email;
$nuser->personal_mobile = $object->phone;
$nuser->birth = $object->date_birth;
$nuser->salary = $object->remuneration_proposed;