Retrait du check inutile sur strlen($this->code) dans l'update d'un utilisateur. Si son login est susceptible de changer, le code doit également être modifié.
This commit is contained in:
parent
ac6d9645ca
commit
e4a9a1fdfc
@ -836,7 +836,7 @@ class User
|
|||||||
$this->email=trim($this->email);
|
$this->email=trim($this->email);
|
||||||
$this->note=trim($this->note);
|
$this->note=trim($this->note);
|
||||||
$this->admin=$this->admin?$this->admin:0;
|
$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);
|
dolibarr_syslog("User::update notrigger=".$notrigger." nom=".$this->nom.", prenom=".$this->prenom);
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user