IDEMPIERE-4192 dont apply style on advanced search
This commit is contained in:
parent
1b6aa35c97
commit
64b35a2e19
|
@ -621,13 +621,13 @@ public abstract class WEditor implements EventListener<Event>, PropertyChangeLis
|
|||
style = buildStyle(gridField.getAD_FieldStyle_ID());
|
||||
}
|
||||
setFieldStyle(style);
|
||||
setFieldMandatoryStyle();
|
||||
setFieldMandatoryStyle(applyDictionaryStyle);
|
||||
}
|
||||
|
||||
private void setFieldMandatoryStyle() {
|
||||
private void setFieldMandatoryStyle(boolean applyStyle) {
|
||||
HtmlBasedComponent component = (HtmlBasedComponent) getComponent();
|
||||
if (component != null) {
|
||||
if (isMandatoryStyle())
|
||||
if (isMandatoryStyle() && applyStyle)
|
||||
LayoutUtils.addSclass(CLASS_MANDATORY_FIELD, component);
|
||||
else
|
||||
LayoutUtils.removeSclass(CLASS_MANDATORY_FIELD, component);
|
||||
|
|
Loading…
Reference in New Issue