Skip to content
Snippets Groups Projects
Commit a690ae05 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: ref_ext was not loaded

parent 4958d17d
Branches
Tags
No related merge requests found
...@@ -469,7 +469,7 @@ class Contact extends CommonObject ...@@ -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 ...@@ -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 ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment