Improved: Required field not working on upload type form
Fixes a checkstyle issue
@@ -323,8 +323,8 @@ public final class MacroFormRenderer implements FormStringRenderer {
}
private boolean shouldApplyRequiredField(ModelFormField modelFormField) {
- return ("single".equals(modelFormField.getModelForm().getType()) ||
- "upload".equals(modelFormField.getModelForm().getType()))
+ return ("single".equals(modelFormField.getModelForm().getType())
+ || "upload".equals(modelFormField.getModelForm().getType()))
&& modelFormField.getRequiredField();
}
