Merge pull request #13732 from pstructures/new-devlelop

Fixed Translation Issue Default Contact Address For Field
This commit is contained in:
Laurent Destailleur 2020-04-24 19:00:04 +02:00 committed by GitHub
commit 708f89c9dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1359,7 +1359,7 @@ abstract class CommonObject
}
if ($conf->{$modulename}->enabled) {
$libelle_element = $langs->trans('ContactDefault_'.$obj->element);
$transkey = "TypeContact_".$this->element."_".$source."_".$obj->code;
$transkey = "TypeContact_".$obj->element."_".$source."_".$obj->code;
$libelle_type = ($langs->trans($transkey) != $transkey ? $langs->trans($transkey) : $obj->libelle);
if (empty($option))
$tab[$obj->rowid] = $libelle_element.' - '.$libelle_type;