mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:35:50 +00:00
P1706-25: Fix renaming of founndOwners
This commit is contained in:
parent
5c20ec1c73
commit
54c8162fe3
1 changed files with 2 additions and 2 deletions
|
@ -93,8 +93,8 @@ class OwnerController {
|
||||||
return "owners/findOwners";
|
return "owners/findOwners";
|
||||||
} else if (results.size() == 1) {
|
} else if (results.size() == 1) {
|
||||||
// 1 owner found
|
// 1 owner found
|
||||||
Owner founndOwner = results.iterator().next();
|
Owner foundOwner = results.iterator().next();
|
||||||
return "redirect:/owners/" + founndOwner.getId();
|
return "redirect:/owners/" + foundOwner.getId();
|
||||||
} else {
|
} else {
|
||||||
// multiple owners found
|
// multiple owners found
|
||||||
model.put("selections", results);
|
model.put("selections", results);
|
||||||
|
|
Loading…
Reference in a new issue