Fix: uniformize code
This commit is contained in:
parent
2984326b0b
commit
f61337c339
@ -457,17 +457,20 @@ class Contact extends CommonObject
|
|||||||
$this->civilite_id = $obj->civilite_id;
|
$this->civilite_id = $obj->civilite_id;
|
||||||
$this->name = $obj->name;
|
$this->name = $obj->name;
|
||||||
$this->firstname = $obj->firstname;
|
$this->firstname = $obj->firstname;
|
||||||
$this->nom = $obj->name;
|
$this->nom = $obj->name; // TODO deprecated
|
||||||
$this->prenom = $obj->firstname;
|
$this->prenom = $obj->firstname; // TODO deprecated
|
||||||
|
|
||||||
$this->address = $obj->address;
|
$this->address = $obj->address;
|
||||||
$this->adresse = $obj->address; // TODO obsolete
|
$this->adresse = $obj->address; // TODO deprecated
|
||||||
$this->cp = $obj->cp;
|
$this->cp = $obj->cp; // TODO deprecated
|
||||||
$this->ville = $obj->ville;
|
$this->zip = $obj->cp;
|
||||||
|
$this->ville = $obj->ville; // TODO deprecated
|
||||||
|
$this->town = $obj->ville;
|
||||||
|
|
||||||
$this->fk_departement = $obj->fk_departement;
|
$this->fk_departement = $obj->fk_departement;
|
||||||
$this->departement_code = $obj->departement_code;
|
$this->departement_code = $obj->departement_code;
|
||||||
$this->departement = $obj->departement;
|
$this->departement = $obj->departement; // TODO deprecated
|
||||||
|
$this->state = $obj->departement;
|
||||||
|
|
||||||
$this->fk_pays = $obj->fk_pays;
|
$this->fk_pays = $obj->fk_pays;
|
||||||
$this->pays_code = $obj->fk_pays?$obj->pays_code:'';
|
$this->pays_code = $obj->fk_pays?$obj->pays_code:'';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user