From e6bfc3354a5b806991b2cb93dfe2d1f0a2e9153e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 20 Jan 2018 18:42:12 +0100 Subject: [PATCH] FIX #8071 --- htdocs/adherents/class/adherent.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index 351debdd3d4..bd0722ae63e 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -528,7 +528,10 @@ class Adherent extends CommonObject { //var_dump($this->user_login);exit; //var_dump($this->login);exit; - $luser->login=$this->login; + + // If option ADHERENT_LOGIN_NOT_REQUIRED is on, there is no login of member, so we do not overwrite user login to keep existing one. + if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) $luser->login=$this->login; + $luser->civility_id=$this->civility_id; $luser->firstname=$this->firstname; $luser->lastname=$this->lastname;