mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
fix ownercontroller
This commit is contained in:
parent
ef0b831b9f
commit
c8b0335e92
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ class OwnerController {
|
|||
return "owners/findOwners";
|
||||
}
|
||||
|
||||
if (ownersResults.getTotalElements() == 2) {
|
||||
if (ownersResults.getTotalElements() == 1) {
|
||||
// 1 owner found
|
||||
owner = ownersResults.iterator().next();
|
||||
return "redirect:/owners/" + owner.getId();
|
||||
|
|
Loading…
Reference in a new issue