Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 547d258

Browse files
author
spacurariu
committed
SORMAS-Foundation#3965 - Samples for event participants are not shown - hot fix
1 parent ae9e9f1 commit 547d258

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/sample/SampleFacadeEjb.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,12 @@ private void pseudonymizeDto(Sample source, SampleDto dto, Pseudonymizer pseudon
813813
User currentUser = userService.getCurrentUser();
814814

815815
boolean samplePseudonimized = true;
816-
if (dto.getAssociatedEventParticipant()!=null){
816+
if (dto.getAssociatedEventParticipant() != null) {
817817
samplePseudonimized = eventParticipantJurisdictionChecker.isPseudonymized(dto.getAssociatedEventParticipant().getUuid());
818818
}
819819
EventParticipantReferenceDto eventParticipantReference = dto.getAssociatedEventParticipant();
820820

821-
pseudonymizer.pseudonymizeDto(SampleDto.class, dto, eventParticipantReference!=null?samplePseudonimized:isInJurisdiction, s -> {
821+
pseudonymizer.pseudonymizeDto(SampleDto.class, dto, eventParticipantReference != null ? samplePseudonimized : isInJurisdiction, s -> {
822822
pseudonymizer.pseudonymizeUser(source.getReportingUser(), currentUser, s::setReportingUser);
823823
pseudonymizeAssociatedObjects(
824824
sampleJurisdiction,
@@ -874,7 +874,9 @@ private void pseudonymizeAssociatedObjects(
874874
}
875875

876876
if (sampleEventParticipant != null) {
877-
pseudonymizer.pseudonymizeDto(EventParticipantReferenceDto.class, sampleEventParticipant,
877+
pseudonymizer.pseudonymizeDto(
878+
EventParticipantReferenceDto.class,
879+
sampleEventParticipant,
878880
eventParticipantJurisdictionChecker.isPseudonymized(sampleEventParticipant.getUuid()),
879881
null);
880882
}

sormas-backend/src/main/java/de/symeda/sormas/backend/sample/SampleJurisdictionChecker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,11 @@ public boolean isInJurisdictionOrOwned(SampleJurisdictionDto sampleJurisdiction)
4545

4646
public boolean isPseudonymized(Sample sample) {
4747

48-
if (sample.getAssociatedEventParticipant()!=null){
48+
if (sample.getAssociatedEventParticipant() != null) {
4949
eventParticipantJurisdictionChecker.isPseudonymized(sample.getAssociatedEventParticipant());
5050
}
5151

5252
return false;
5353

54-
5554
}
5655
}

0 commit comments

Comments
 (0)