IDEMPIERE-4192 dont apply style on advanced search

This commit is contained in:
Diego Ruiz 2020-03-11 17:08:36 +01:00 committed by Carlos Ruiz
parent 1b6aa35c97
commit 64b35a2e19
1 changed files with 3 additions and 3 deletions

View File

@ -621,13 +621,13 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
style = buildStyle(gridField.getAD_FieldStyle_ID()); style = buildStyle(gridField.getAD_FieldStyle_ID());
} }
setFieldStyle(style); setFieldStyle(style);
setFieldMandatoryStyle(); setFieldMandatoryStyle(applyDictionaryStyle);
} }
private void setFieldMandatoryStyle() { private void setFieldMandatoryStyle(boolean applyStyle) {
HtmlBasedComponent component = (HtmlBasedComponent) getComponent(); HtmlBasedComponent component = (HtmlBasedComponent) getComponent();
if (component != null) { if (component != null) {
if (isMandatoryStyle()) if (isMandatoryStyle() && applyStyle)
LayoutUtils.addSclass(CLASS_MANDATORY_FIELD, component); LayoutUtils.addSclass(CLASS_MANDATORY_FIELD, component);
else else
LayoutUtils.removeSclass(CLASS_MANDATORY_FIELD, component); LayoutUtils.removeSclass(CLASS_MANDATORY_FIELD, component);