Fix translation of extrafields

This commit is contained in:
Laurent Destailleur 2017-09-02 13:03:14 +02:00
parent 36eb21c135
commit 9923c87fd8

View File

@ -4622,7 +4622,9 @@ abstract class CommonObject
$labeltoshow = $langs->trans($label);
if($extrafields->attribute_required[$key])
$label = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>';
{
$labeltoshow = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$labeltoshow.'</span>';
}
$out .= '<td>'.$labeltoshow.'</td>';
$html_id = !empty($this->id) ? $this->element.'_extras_'.$key.'_'.$this->id : '';