Skip to content
Permalink
Browse files

fix: #11189

  • Loading branch information...
florian HENRY
florian HENRY committed May 19, 2019
1 parent 6e7fe1a commit e4d87ab2e7c1bdb09f9d7a302f621547ae37dd8f
Showing with 8 additions and 7 deletions.
  1. +8 −7 htdocs/core/class/extrafields.class.php
@@ -1194,13 +1194,14 @@ function showInputField($key, $value, $moreparam='', $keysuffix='', $keyprefix='
if ($value == $obj->rowid)
{
foreach ($fields_label as $field_toshow)
{
$translabel=$langs->trans($obj->$field_toshow);
if ($translabel!=$obj->$field_toshow) {
$labeltoshow=dol_trunc($translabel,18).' ';
}else {
$labeltoshow=dol_trunc($obj->$field_toshow,18).' ';
if (! $notrans) {
foreach ($fields_label as $field_toshow) {
$translabel = $langs->trans($obj->$field_toshow);
if ($translabel != $obj->$field_toshow) {
$labeltoshow = dol_trunc($translabel, 18) . ' ';
} else {
$labeltoshow = dol_trunc($obj->$field_toshow, 18) . ' ';
}
}
}
$out.='<option value="'.$obj->rowid.'" selected>'.$labeltoshow.'</option>';

0 comments on commit e4d87ab

Please sign in to comment.
You can’t perform that action at this time.