From 27502caa85ed672865b646fd52df10068fafdd16 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 25 May 2011 13:03:04 +0000 Subject: [PATCH] Fix: No sentence into undefined values --- htdocs/contact/class/contact.class.php | 4 ++-- htdocs/contact/fiche.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index a2ab2919d94..c8f3452a025 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -494,8 +494,8 @@ class Contact extends CommonObject $this->fk_pays = $obj->fk_pays; $this->pays_code = $obj->fk_pays?$obj->pays_code:''; - $this->pays = ($obj->fk_pays > 0)?$langs->transnoentities("Country".$obj->pays_code):$langs->transnoentities("SelectCountry"); - $this->country = ($obj->fk_pays > 0)?$langs->transnoentities("Country".$obj->pays_code):$langs->transnoentities("SelectCountry"); + $this->pays = ($obj->fk_pays > 0)?$langs->transnoentitiesnoconv("Country".$obj->pays_code):''; + $this->country = ($obj->fk_pays > 0)?$langs->transnoentitiesnoconv("Country".$obj->pays_code):''; $this->socid = $obj->fk_soc; $this->socname = $obj->socname; diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index fad88ea48d9..fce7f84e03b 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -817,7 +817,7 @@ else // Address print ''.$langs->trans("Address").''; - dol_print_address($object->address,'gmap','thirdparty',$object->id); + dol_print_address($object->address,'gmap','contact',$object->id); print ''; // Zip Town