diff --git a/htdocs/user.class.php b/htdocs/user.class.php index 75f0f4e1a39..c3928f73b6e 100644 --- a/htdocs/user.class.php +++ b/htdocs/user.class.php @@ -836,7 +836,7 @@ class User $this->email=trim($this->email); $this->note=trim($this->note); $this->admin=$this->admin?$this->admin:0; - if (!strlen($this->code)) $this->code = $this->login; + $this->code = $this->login; dolibarr_syslog("User::update notrigger=".$notrigger." nom=".$this->nom.", prenom=".$this->prenom); $error=0;