Merge pull request #22290 from javieralapps4up/patch-4

FIX Update extrafield, label translation of 18 too short.
This commit is contained in:
Laurent Destailleur 2022-09-20 00:20:32 +02:00 committed by GitHub
commit 66d232140f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1688,8 +1688,8 @@ class ExtraFields
if (!empty($obj->$field_toshow)) {
$translabel = $langs->trans($obj->$field_toshow);
}
if ($translabel != $field_toshow) {
$value .= dol_trunc($translabel, 18).' ';
if ($translabel != $obj->$field_toshow) {
$value .= dol_trunc($translabel, 24).' ';
} else {
$value .= $obj->$field_toshow.' ';
}