Working on converting addRoleToPersonTwoStage to date time with precision NIHVIVO-631

This commit is contained in:
bdc34 2011-01-05 22:35:25 +00:00
parent d73aad79f4
commit 9184b6f70f
2 changed files with 4 additions and 3 deletions

View file

@ -56,7 +56,8 @@ public class StartYearBeforeEndYear implements N3Validator {
errors.put(endFieldName, "End year must be after start year");
}
} catch (NumberFormatException nfe) {
errors.put(startFieldName, "could not format star or end date");
errors.put(endFieldName, "could not format star or end date");
}
return errors;
}

View file

@ -438,8 +438,8 @@ public class InputElementFormattingTag extends TagSupport {
// }
if ((getType()==null || getType().equals("")) && field.getEditElement() == null ){
log.error("Error in doStartTag: input element type is blank or not specified.");
if ((getType()==null || getType().equals("")) && (field != null && field.getEditElement() == null )){
log.error("Error in doStartTag: input element type not specified and editElement not specified.");
}
// set ProhibitedFromSearch object so picklist doesn't show