Fix set of civility label
This commit is contained in:
parent
aa14b1b39c
commit
84050c888f
@ -708,7 +708,7 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
$sql = "SELECT c.rowid, c.entity, c.fk_soc, c.ref_ext, c.civility as civility_id, c.lastname, c.firstname,";
|
$sql = "SELECT c.rowid, c.entity, c.fk_soc, c.ref_ext, c.civility as civility_code, c.lastname, c.firstname,";
|
||||||
$sql.= " c.address, c.statut, c.zip, c.town,";
|
$sql.= " c.address, c.statut, c.zip, c.town,";
|
||||||
$sql.= " c.fk_pays as country_id,";
|
$sql.= " c.fk_pays as country_id,";
|
||||||
$sql.= " c.fk_departement as state_id,";
|
$sql.= " c.fk_departement as state_id,";
|
||||||
@ -750,10 +750,11 @@ class Contact extends CommonObject
|
|||||||
$this->entity = $obj->entity;
|
$this->entity = $obj->entity;
|
||||||
$this->ref = $obj->rowid;
|
$this->ref = $obj->rowid;
|
||||||
$this->ref_ext = $obj->ref_ext;
|
$this->ref_ext = $obj->ref_ext;
|
||||||
$this->civility_id = $obj->civility_id;
|
|
||||||
$this->civility_code = $obj->civility_id;
|
$this->civility_code = $obj->civility_code;
|
||||||
$this->civility = $langs->trans("Civility".$obj->civility_id);
|
$this->civility = $obj->civility_code?($langs->trans("Civility".$obj->civility_code) != ("Civility".$obj->civility_code) ? $langs->trans("Civility".$obj->civility_code) : $obj->civility_code):'';
|
||||||
$this->lastname = $obj->lastname;
|
|
||||||
|
$this->lastname = $obj->lastname;
|
||||||
$this->firstname = $obj->firstname;
|
$this->firstname = $obj->firstname;
|
||||||
$this->address = $obj->address;
|
$this->address = $obj->address;
|
||||||
$this->zip = $obj->zip;
|
$this->zip = $obj->zip;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user