fix ownercontroller

This commit is contained in:
Andy Wyatt 2023-11-09 16:42:51 +00:00
parent ef0b831b9f
commit c8b0335e92

View file

@ -100,7 +100,7 @@ class OwnerController {
return "owners/findOwners"; return "owners/findOwners";
} }
if (ownersResults.getTotalElements() == 2) { if (ownersResults.getTotalElements() == 1) {
// 1 owner found // 1 owner found
owner = ownersResults.iterator().next(); owner = ownersResults.iterator().next();
return "redirect:/owners/" + owner.getId(); return "redirect:/owners/" + owner.getId();