Skip to content

Commit

Permalink
#10496: Set PresentCondition accordingly to UNKNOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRiedel committed Sep 30, 2022
1 parent ab386af commit 8ecb600
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2454,7 +2454,7 @@ private void updatePersonAndCaseByOutcome(CaseDataDto existingCase, Case newCase
caseCriteria.setPerson(existingPerson.toReference());
caseCriteria.setOutcome(CaseOutcome.DECEASED);
if (count(caseCriteria, true) == 0) {
newCase.getPerson().setPresentCondition(PresentCondition.ALIVE);
newCase.getPerson().setPresentCondition(newCase.getOutcome() == CaseOutcome.NO_OUTCOME ? PresentCondition.UNKNOWN : PresentCondition.ALIVE);
newCase.getPerson().setBurialDate(null);
newCase.getPerson().setDeathDate(null);
newCase.getPerson().setDeathPlaceDescription(null);
Expand Down

0 comments on commit 8ecb600

Please sign in to comment.