Skip to content
Snippets Groups Projects
Commit bd965b02 authored by Franky Van Liedekerke's avatar Franky Van Liedekerke
Browse files

translation of the country the user is in

parent c6f19812
No related branches found
No related tags found
No related merge requests found
...@@ -354,6 +354,7 @@ class Contact ...@@ -354,6 +354,7 @@ class Contact
*/ */
function fetch($id, $user=0) function fetch($id, $user=0)
{ {
global $langs;
$sql = "SELECT c.idp, c.fk_soc, c.civilite civilite_id, c.name, c.firstname,"; $sql = "SELECT c.idp, c.fk_soc, c.civilite civilite_id, c.name, c.firstname,";
$sql.= " c.address, c.cp, c.ville,"; $sql.= " c.address, c.cp, c.ville,";
$sql.= " c.fk_pays, p.libelle as pays, p.code as pays_code,"; $sql.= " c.fk_pays, p.libelle as pays, p.code as pays_code,";
...@@ -385,7 +386,8 @@ class Contact ...@@ -385,7 +386,8 @@ class Contact
$this->ville = $obj->ville; $this->ville = $obj->ville;
$this->fk_pays = $obj->fk_pays; $this->fk_pays = $obj->fk_pays;
$this->pays_code = $obj->fk_pays?$obj->pays_code:''; $this->pays_code = $obj->fk_pays?$obj->pays_code:'';
$this->pays = $obj->fk_pays?$obj->pays:''; //$this->pays = $obj->fk_pays?$obj->pays:'';
$this->pays = $langs->trans("Country".$obj->pays_code)?$langs->trans("Country".$obj->pays_code):'';
$this->societeid = $obj->fk_soc; $this->societeid = $obj->fk_soc;
$this->socid = $obj->fk_soc; $this->socid = $obj->fk_soc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment