Improved: Required field not working on upload type form (OFBIZ-12619)
Fixes a checkstyle issue
This commit is contained in:
+3
-3
@@ -323,9 +323,9 @@ public final class MacroFormRenderer implements FormStringRenderer {
|
||||
}
|
||||
|
||||
private boolean shouldApplyRequiredField(ModelFormField modelFormField) {
|
||||
return ("single".equals(modelFormField.getModelForm().getType()) ||
|
||||
"upload".equals(modelFormField.getModelForm().getType()))
|
||||
&& modelFormField.getRequiredField();
|
||||
return ("single".equals(modelFormField.getModelForm().getType())
|
||||
|| "upload".equals(modelFormField.getModelForm().getType()))
|
||||
&& modelFormField.getRequiredField();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user