2
0
forked from Wavyzz/dolibarr

fix: unuseful truncations in extrafield select lists

This commit is contained in:
bahfir abbes
2020-09-11 22:31:48 +01:00
parent 009c7eaf31
commit e89bfe5ac1

View File

@@ -1218,13 +1218,13 @@ class ExtraFields
} else {
$labeltoshow = $obj->{$InfoFieldList[1]};
}
$labeltoshow = dol_trunc($labeltoshow, 45);
$labeltoshow = $labeltoshow;
if ($value == $obj->rowid) {
if (!$notrans) {
foreach ($fields_label as $field_toshow) {
$translabel = $langs->trans($obj->$field_toshow);
$labeltoshow = dol_trunc($translabel, 18).' ';
$labeltoshow = $translabel.' ';
}
}
$out .= '<option value="'.$obj->rowid.'" selected>'.$labeltoshow.'</option>';