IDEMPIERE-4151 Label Style not working when a field is set to Heading Only

This commit is contained in:
Diego Ruiz 2020-01-28 15:09:53 +01:00 committed by Carlos Ruiz
parent 8405e2a494
commit 153d311eaa
1 changed files with 2 additions and 2 deletions

View File

@ -738,8 +738,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer
Label label = new Label(field.getHeader());
Div div = new Div();
div.setSclass("form-label-heading");
if (field.getAD_FieldStyle_ID() > 0) {
MStyle style = MStyle.get(Env.getCtx(), field.getAD_FieldStyle_ID());
if (field.getAD_LabelStyle_ID() > 0) {
MStyle style = MStyle.get(Env.getCtx(), field.getAD_LabelStyle_ID());
String cssStyle = style.buildStyle(ThemeManager.getTheme(), new Evaluatee() {
@Override
public String get_ValueAsString(String variableName) {