Skip to content
Snippets Groups Projects

fix: change way of adding errors for metadata dates

Merged Alicia.DeDiosFuente requested to merge adf-fix-validate-dates into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -284,7 +284,7 @@ public abstract class MetadataValidatorService implements MetadataValidator {
int index = 0;
for (MetadataDates date: dates) {
if (!StringTool.isNullOrEmpty(date.getContent()) && !ValidationTool.isValidDate(date.getContent())) {
errors.addError(new FieldError(publication.getClass().getSimpleName(), FORM_STEP_DESCRIPTION_PREFIX + "dates[" + index + "].date",
errors.addError(new FieldError(publication.getClass().getSimpleName(), FORM_STEP_DESCRIPTION_PREFIX + "dates."+ index + ".date",
this.messageService.get(ERROR_INVALID_DATE)));
}
index++;
Loading