20200217
This commit is contained in:
parent
50797bf892
commit
060bfde082
@ -627,6 +627,7 @@ class Adherent extends CommonObject
|
||||
$this->address = ($this->address ? $this->address : $this->address);
|
||||
$this->zip = ($this->zip ? $this->zip : $this->zip);
|
||||
$this->town = ($this->town ? $this->town : $this->town);
|
||||
$this->setUpperOrLowerCase();
|
||||
$this->country_id = ($this->country_id > 0 ? $this->country_id : $this->country_id);
|
||||
$this->state_id = ($this->state_id > 0 ? $this->state_id : $this->state_id);
|
||||
$this->setUpperOrLowerCase();
|
||||
|
||||
@ -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;
|
||||
@ -1480,6 +1481,7 @@ class User extends CommonObject
|
||||
$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