Update commonobject.class.php

This commit is contained in:
Matt Sidnell 2020-04-23 20:37:15 +01:00
parent 1f18e82b2d
commit dd070cc680

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;