Fix: if the contact's address is empty, it uses one of the company
This commit is contained in:
parent
3b5735bd9c
commit
0bc8ad6a2f
@ -416,7 +416,7 @@ class Contact extends CommonObject
|
||||
$this->prenom = $obj->firstname;
|
||||
|
||||
$this->address = $obj->address?$obj->address:$obj->socaddress;
|
||||
$this->adresse = $obj->address; // TODO obsolete
|
||||
$this->adresse = $obj->address?$obj->address:$obj->socaddress; // TODO obsolete
|
||||
$this->cp = $obj->cp?$obj->cp:$obj->soccp;
|
||||
$this->ville = $obj->ville?$obj->ville:$obj->soccity;
|
||||
$this->fk_pays = $obj->fk_pays;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user