Merge pull request #16331 from bb2a/UPPER_CONTACT_USER_ADH
setUpperOrLowerCase
This commit is contained in:
commit
1aa418921a
@ -984,6 +984,7 @@ class Societe extends CommonObject
|
||||
$contact->email = $this->email;
|
||||
$contact->zip = $this->zip;
|
||||
$contact->town = $this->town;
|
||||
$this->setUpperOrLowerCase();
|
||||
$contact->phone_pro = $this->phone;
|
||||
|
||||
$contactId = $contact->create($user);
|
||||
|
||||
@ -1402,6 +1402,7 @@ class User extends CommonObject
|
||||
$this->address = $contact->address;
|
||||
$this->zip = $contact->zip;
|
||||
$this->town = $contact->town;
|
||||
$this->setUpperOrLowerCase();
|
||||
$this->state_id = $contact->state_id;
|
||||
$this->country_id = $contact->country_id;
|
||||
$this->employee = 0;
|
||||
@ -1474,12 +1475,13 @@ class User extends CommonObject
|
||||
$this->civility_code = $member->civility_id;
|
||||
$this->lastname = $member->lastname;
|
||||
$this->firstname = $member->firstname;
|
||||
$this->gender = $member->gender;
|
||||
$this->gender = $member->gender;
|
||||
$this->email = $member->email;
|
||||
$this->fk_member = $member->id;
|
||||
$this->address = $member->address;
|
||||
$this->zip = $member->zip;
|
||||
$this->town = $member->town;
|
||||
$this->setUpperOrLowerCase();
|
||||
$this->state_id = $member->state_id;
|
||||
$this->country_id = $member->country_id;
|
||||
$this->socialnetworks = $member->socialnetworks;
|
||||
@ -1637,6 +1639,7 @@ class User extends CommonObject
|
||||
$this->address = empty($this->address) ? '' : $this->address;
|
||||
$this->zip = empty($this->zip) ? '' : $this->zip;
|
||||
$this->town = empty($this->town) ? '' : $this->town;
|
||||
$this->setUpperOrLowerCase();
|
||||
$this->accountancy_code = trim($this->accountancy_code);
|
||||
$this->color = empty($this->color) ? '' : $this->color;
|
||||
$this->dateemployment = empty($this->dateemployment) ? '' : $this->dateemployment;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user