From 3ada0a8741386289184f32ccea1d842bc889f146 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Tue, 28 Dec 2021 10:40:44 +0100 Subject: [PATCH] Fix #19672 : email unicity was checked when email was null --- htdocs/recruitment/recruitmentcandidature_card.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/recruitment/recruitmentcandidature_card.php b/htdocs/recruitment/recruitmentcandidature_card.php index a1e98ded601..18ecc57512b 100644 --- a/htdocs/recruitment/recruitmentcandidature_card.php +++ b/htdocs/recruitment/recruitmentcandidature_card.php @@ -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;