Skip to content

Commit

Permalink
CIV-0000 clear evidence selection lists on submission (#3249)
Browse files Browse the repository at this point in the history
* clear evidence selection lists on submission

* checkstyle
  • Loading branch information
drummondjm authored Sep 18, 2023
1 parent d1ca354 commit 709e265
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,22 @@ CallbackResponse documentUploadTime(CallbackParams callbackParams) {
setCategoryIdAndRenameDoc(caseData.getDocumentEvidenceForTrialApp2(), document -> document.getValue().getDocumentUpload(), APPLICANT_TWO_TRIAL_DOC_CORRESPONDENCE);
}

// null the values of the lists, so that on future retriggers of the event, they are blank
caseDataBuilder.disclosureSelectionEvidence(null);
caseDataBuilder.disclosureSelectionEvidenceRes(null);
caseDataBuilder.witnessSelectionEvidence(null);
caseDataBuilder.witnessSelectionEvidenceSmallClaim(null);
caseDataBuilder.witnessSelectionEvidenceRes(null);
caseDataBuilder.witnessSelectionEvidenceSmallClaimRes(null);
caseDataBuilder.expertSelectionEvidenceRes(null);
caseDataBuilder.expertSelectionEvidence(null);
caseDataBuilder.expertSelectionEvidenceSmallClaim(null);
caseDataBuilder.expertSelectionEvidenceSmallClaimRes(null);
caseDataBuilder.trialSelectionEvidence(null);
caseDataBuilder.trialSelectionEvidenceSmallClaim(null);
caseDataBuilder.trialSelectionEvidenceRes(null);
caseDataBuilder.trialSelectionEvidenceSmallClaimRes(null);

return AboutToStartOrSubmitCallbackResponse.builder()
.data(caseDataBuilder.build().toMap(objectMapper))
.build();
Expand Down

0 comments on commit 709e265

Please sign in to comment.