From a690ae05f6144c45389e776aaacca3321cdd23be Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 8 Oct 2013 00:42:40 +0200 Subject: [PATCH] Fix: ref_ext was not loaded --- htdocs/contact/class/contact.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index 9dcedd75daa..feaa996ad0c 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -469,7 +469,7 @@ class Contact extends CommonObject /** - * Charge l'objet contact + * Load object contact * * @param int $id id du 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"); - - $sql = "SELECT c.rowid, c.fk_soc, c.civilite as civilite_id, c.lastname, c.firstname,"; + $sql = "SELECT c.rowid, c.fk_soc, c.ref_ext, c.civilite as civilite_id, c.lastname, c.firstname,"; $sql.= " c.address, c.statut, c.zip, c.town,"; $sql.= " c.fk_pays as country_id,"; $sql.= " c.fk_departement,"; @@ -511,6 +510,7 @@ class Contact extends CommonObject $this->id = $obj->rowid; $this->ref = $obj->rowid; + $this->ref_ext = $obj->ref_ext; $this->civilite_id = $obj->civilite_id; $this->lastname = $obj->lastname; $this->firstname = $obj->firstname; @@ -972,7 +972,7 @@ class Contact extends CommonObject } - + /** * Return translated label of Public or Private *