Fix: ref_ext was not loaded
This commit is contained in:
parent
4958d17d24
commit
a690ae05f6
@ -469,7 +469,7 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Charge l'objet contact
|
* Load object contact
|
||||||
*
|
*
|
||||||
* @param int $id id du contact
|
* @param int $id id du contact
|
||||||
* @param User $user Utilisateur (abonnes aux alertes) qui veut les alertes de ce contact
|
* @param User $user Utilisateur (abonnes aux alertes) qui veut les alertes de ce contact
|
||||||
@ -481,8 +481,7 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|
||||||
|
$sql = "SELECT c.rowid, c.fk_soc, c.ref_ext, c.civilite as civilite_id, c.lastname, c.firstname,";
|
||||||
$sql = "SELECT c.rowid, c.fk_soc, c.civilite as civilite_id, 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,";
|
$sql.= " c.fk_departement,";
|
||||||
@ -511,6 +510,7 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
$this->id = $obj->rowid;
|
$this->id = $obj->rowid;
|
||||||
$this->ref = $obj->rowid;
|
$this->ref = $obj->rowid;
|
||||||
|
$this->ref_ext = $obj->ref_ext;
|
||||||
$this->civilite_id = $obj->civilite_id;
|
$this->civilite_id = $obj->civilite_id;
|
||||||
$this->lastname = $obj->lastname;
|
$this->lastname = $obj->lastname;
|
||||||
$this->firstname = $obj->firstname;
|
$this->firstname = $obj->firstname;
|
||||||
@ -972,7 +972,7 @@ class Contact extends CommonObject
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return translated label of Public or Private
|
* Return translated label of Public or Private
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user