fix for path #682

This commit is contained in:
Asha Somayajula 2020-10-02 23:22:54 -05:00
parent 27109010a5
commit 3ca8196194
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ public class PetTypeFormatter implements Formatter<PetType> {
public PetType parse(String text, Locale locale) throws ParseException {
Collection<PetType> findPetTypes = this.pets.findPetTypes();
for (PetType type : findPetTypes) {
if (type.getName().equals(text)) {
if (type.getName().equalsIgnoreCase(text)) {
return type;
}
}

View file

@ -10,7 +10,7 @@
<div class="col-sm-10">
<select th:field="*{__${name}__}">
<option th:each="item : ${items}" th:value="${item}"
th:text="${item}">dog</option>
th:text="${#strings.capitalize(item)}">dog</option>
</select>
<span th:if="${valid}"
class="glyphicon glyphicon-ok form-control-feedback"
@ -26,4 +26,4 @@
</th:block>
</form>
</body>
</html>
</html>