diff --git a/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java b/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java index 4940bcb38..0df1a38a9 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/PetTypeFormatter.java @@ -52,7 +52,7 @@ public class PetTypeFormatter implements Formatter { public PetType parse(String text, Locale locale) throws ParseException { Collection findPetTypes = this.pets.findPetTypes(); for (PetType type : findPetTypes) { - if (type.getName().equals(text)) { + if (type.getName().equalsIgnoreCase(text)) { return type; } } diff --git a/src/main/resources/templates/fragments/selectField.html b/src/main/resources/templates/fragments/selectField.html index 438474463..2ae37735e 100644 --- a/src/main/resources/templates/fragments/selectField.html +++ b/src/main/resources/templates/fragments/selectField.html @@ -10,7 +10,7 @@