Merge pull request #18410 from ATM-Consulting/FIX_14.0_dolibarr_user_account_creation_from_recruitment_applicant_card

FIX: e-mail of applicant is not transferred to the new user when creating a user from an applicant card
This commit is contained in:
Laurent Destailleur 2021-08-17 15:56:20 +02:00 committed by GitHub
commit 23e8b513c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,7 @@ if (empty($reshook)) {
$nuser->birth = $object->date_birth;
$nuser->salary = $object->remuneration_proposed;
$nuser->fk_user = $jobposition->fk_user_supervisor; // Supervisor
$nuser->email = $object->email;
$result = $nuser->create($user);