flash(Constants.WARNING, "project.logo.fileSizeAlert");
updateProjectForm.reject("logoPath", "project.logo.fileSizeAlert");
}
}
ValidationError error = updateProjectForm.error("name");
if (error != null) {
if (PatternValidator.message.equals(error.message())) {
flash(Constants.WARNING, "project.name.alert");
updateProjectForm.errors().remove("name");
updateProjectForm.reject("name", "project.name.alert");
} else if (RestrictedValidator.message.equals(error.message())) {
flash(Constants.WARNING, "project.name.reserved.alert");
updateProjectForm.errors().remove("name");
updateProjectForm.reject("name", "project.name.reserved.alert");
}
}