From 3132f205cb0478b3f4acd55bbe4cf2997efed056 Mon Sep 17 00:00:00 2001 From: javieralapps4up Date: Thu, 15 Sep 2022 16:47:39 +0200 Subject: [PATCH] Update extrafields.class.php The content of the field is never displayed translated. When fixing it, 18 is too short --- htdocs/core/class/extrafields.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index a3925c9160a..78763856089 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -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.' '; }