mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25: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";
|
||||
} else if (results.size() == 1) {
|
||||
// 1 owner found
|
||||
Owner founndOwner = results.iterator().next();
|
||||
return "redirect:/owners/" + founndOwner.getId();
|
||||
Owner foundOwner = results.iterator().next();
|
||||
return "redirect:/owners/" + foundOwner.getId();
|
||||
} else {
|
||||
// multiple owners found
|
||||
model.put("selections", results);
|
||||
|
|
Loading…
Reference in a new issue