From f2a4e4271227800fd0264bb22bf02afa1b612292 Mon Sep 17 00:00:00 2001 From: fhenry Date: Thu, 3 Jan 2013 14:44:04 +0100 Subject: [PATCH] CheckStyle I check everypalce where this function is call in Dolibarr, and to be consistant it's better to use new attribute names --- htdocs/user/class/user.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/user/class/user.class.php b/htdocs/user/class/user.class.php index 175f01da4ea..59319e97c8c 100644 --- a/htdocs/user/class/user.class.php +++ b/htdocs/user/class/user.class.php @@ -909,8 +909,8 @@ class User extends CommonObject $this->admin = 0; $this->nom = $contact->nom; // TODO deprecated $this->prenom = $contact->prenom; // TODO deprecated - $this->lastname = $contact->nom; - $this->firstname = $contact->prenom; + $this->lastname = $contact->lastname; + $this->firstname = $contact->firstname; $this->email = $contact->email; $this->office_phone = $contact->phone_pro; $this->office_fax = $contact->fax;