mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
fix for path #682
This commit is contained in:
parent
27109010a5
commit
3ca8196194
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ public class PetTypeFormatter implements Formatter<PetType> {
|
||||||
public PetType parse(String text, Locale locale) throws ParseException {
|
public PetType parse(String text, Locale locale) throws ParseException {
|
||||||
Collection<PetType> findPetTypes = this.pets.findPetTypes();
|
Collection<PetType> findPetTypes = this.pets.findPetTypes();
|
||||||
for (PetType type : findPetTypes) {
|
for (PetType type : findPetTypes) {
|
||||||
if (type.getName().equals(text)) {
|
if (type.getName().equalsIgnoreCase(text)) {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select th:field="*{__${name}__}">
|
<select th:field="*{__${name}__}">
|
||||||
<option th:each="item : ${items}" th:value="${item}"
|
<option th:each="item : ${items}" th:value="${item}"
|
||||||
th:text="${item}">dog</option>
|
th:text="${#strings.capitalize(item)}">dog</option>
|
||||||
</select>
|
</select>
|
||||||
<span th:if="${valid}"
|
<span th:if="${valid}"
|
||||||
class="glyphicon glyphicon-ok form-control-feedback"
|
class="glyphicon glyphicon-ok form-control-feedback"
|
||||||
|
|
Loading…
Reference in a new issue