Skip to content

Commit

Permalink
Merge pull request #1329 from egovernments/HCMPRE-1817
Browse files Browse the repository at this point in the history
HCMPRE:1817 - Bug Fix - validating plan employee assignments only for active update calls
  • Loading branch information
Priyanka-eGov authored Jan 9, 2025
2 parents bcd3ade + 518c1cf commit 1ba656a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,9 @@ public void validateUpdate(PlanEmployeeAssignmentRequest request) {
// Validate if Plan employee assignment exists
validatePlanEmployeeAssignmentExistance(planEmployeeAssignment);

// Validate campaign id and employee jurisdiction
validateCampaignDetails(planConfigurations.get(0).getCampaignId(), rootTenantId, request);
// Validate campaign id and employee jurisdiction for active records
if(planEmployeeAssignment.getActive())
validateCampaignDetails(planConfigurations.get(0).getCampaignId(), rootTenantId, request);

}

Expand Down

0 comments on commit 1ba656a

Please sign in to comment.