Merge pull request #3135 from atm-ph/3.6_fix_socpeople_country_display

FIX : wrong display with contact country
This commit is contained in:
Laurent Destailleur 2015-07-04 04:41:20 +02:00
commit 5d588714f0

View File

@ -555,7 +555,7 @@ class Contact extends CommonObject
$this->country_id = $obj->country_id;
$this->country_code = $obj->country_id?$obj->country_code:'';
$this->country = ($obj->country_id > 0)?$langs->transnoentitiesnoconv("Country".$obj->country_code):'';
$this->country = $obj->country_id?($langs->trans('Country'.$obj->country_code)!='Country'.$obj->country_code?$langs->transnoentities('Country'.$obj->country_code):$obj->country):'';
$this->socid = $obj->fk_soc;
$this->socname = $obj->socname;