made it so staff cannot change the status of pets for desktop for adopted or owned

This commit is contained in:
Alex
2026-04-13 20:49:22 -06:00
parent 572895efa9
commit 044e9ba7b2
7 changed files with 292 additions and 123 deletions

View File

@@ -271,6 +271,7 @@ public class AdoptionService {
pet.setStore(null);
} else if (ADOPTION_STATUS_PENDING.equalsIgnoreCase(adoptionStatus)) {
pet.setPetStatus(PET_STATUS_PENDING);
pet.setOwner(customer);
} else {
pet.setPetStatus(PET_STATUS_AVAILABLE);
pet.setOwner(null);