Update extrafields.class.php

The content of the field is never displayed translated. When fixing it, 18 is too short
This commit is contained in:
javieralapps4up 2022-09-15 16:47:39 +02:00 committed by GitHub
parent 27f817d940
commit 3132f205cb
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.' ';
}