This commit is contained in:
Laurent Destailleur 2017-01-16 12:54:51 +01:00
parent 9c60474953
commit fdbe4051f1

View File

@ -1050,7 +1050,8 @@ class User extends CommonObject
$this->town = $contact->town;
$this->state_id = $contact->state_id;
$this->country_id = $contact->country_id;
$this->employee = 0;
if (empty($login)) $login=strtolower(substr($contact->firstname, 0, 4)) . strtolower(substr($contact->lastname, 0, 4));
$this->login = $login;