Fix: style required in create or edit mode only
This commit is contained in:
parent
a0fc26fbd8
commit
6acd31f8ad
@ -4099,7 +4099,7 @@ abstract class CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($extrafields->attribute_required[$key])
|
if($extrafields->attribute_required[$key])
|
||||||
$label = '<span class="fieldrequired">'.$label.'</span>';
|
$label = '<span'.($mode != 'view' ? ' class="fieldrequired"':'').'>'.$label.'</span>';
|
||||||
|
|
||||||
$out .= '<td>'.$langs->trans($label).'</td>';
|
$out .= '<td>'.$langs->trans($label).'</td>';
|
||||||
$out .='<td'.($colspan?' colspan="'.$colspan.'"':'').'>';
|
$out .='<td'.($colspan?' colspan="'.$colspan.'"':'').'>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user