From 434c58468e4eb3e732aee2a69b88d31a5628a4ea Mon Sep 17 00:00:00 2001 From: Katy Ekey Date: Wed, 22 Jan 2025 13:36:23 -0500 Subject: [PATCH] fix: Use correct SpEL for ACB update [#OCD-4782] --- .../gov/healthit/chpl/manager/CertificationBodyManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chpl/chpl-service/src/main/java/gov/healthit/chpl/manager/CertificationBodyManager.java b/chpl/chpl-service/src/main/java/gov/healthit/chpl/manager/CertificationBodyManager.java index e5d4c3e8e3..8b7ef99123 100644 --- a/chpl/chpl-service/src/main/java/gov/healthit/chpl/manager/CertificationBodyManager.java +++ b/chpl/chpl-service/src/main/java/gov/healthit/chpl/manager/CertificationBodyManager.java @@ -86,14 +86,14 @@ public CertificationBody create(CertificationBody acb) throws EntityCreationExce @Transactional @PreAuthorize("@permissions.hasAccess(T(gov.healthit.chpl.permissions.Permissions).CERTIFICATION_BODY, " - + "T(gov.healthit.chpl.permissions.domains.CertificationBodyDomainPermissions).UPDATE, #acb)") + + "T(gov.healthit.chpl.permissions.domains.CertificationBodyDomainPermissions).UPDATE, #acbToUpdate)") @CacheEvict(value = { CacheNames.GET_DECERTIFIED_DEVELOPERS, CacheNames.COLLECTIONS_DEVELOPERS, CacheNames.COLLECTIONS_LISTINGS, CacheNames.COMPLAINTS }, allEntries = true) - @ListingStoreRemove(removeBy = RemoveBy.ACB_ID, id = "#acb.id") + @ListingStoreRemove(removeBy = RemoveBy.ACB_ID, id = "#acbToUpdate.id") @ListingSearchCacheRefresh // no other caches have ACB data so we do not need to clear all public CertificationBody update(CertificationBody acbToUpdate) throws EntityRetrievalException, SchedulerException, ValidationException, ActivityException, InvalidArgumentsException {