FIX contact type translation (#36863)

This commit is contained in:
atm-vincent-p 2026-01-13 11:35:32 +01:00 committed by GitHub
parent fcef8ec922
commit de96c57acf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1706,7 +1706,7 @@ abstract class CommonObject
$obj = $this->db->fetch_object($resql);
$transkey = "TypeContact_".$this->element."_".$source."_".$obj->code;
$libelle_type = ($langs->trans($transkey) != $transkey ? $langs->trans($transkey) : $obj->type_label);
$libelle_type = ($langs->trans($transkey) != $transkey ? $langs->trans($transkey) : $langs->trans($obj->type_label));
if (empty($option)) {
$tab[$obj->rowid] = $libelle_type;
} elseif ($option == 1) {