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

Commit b5eb105

Browse files
Merge pull request SORMAS-Foundation#3780 from hzi-braunschweig/bug-3779-The-ExternalJournalService.shouldNotify()-does-not-work-as-expected
SORMAS-Foundation#3779 fix to call handleJournalPerson earlier
2 parents f6c84ab + e721e30 commit b5eb105

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sormas-backend/src/main/java/de/symeda/sormas/backend/contact/ContactFacadeEjb.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ public ContactDto saveContact(ContactDto dto, boolean handleChanges) {
285285

286286
validate(dto);
287287

288+
if (existingContact != null) {
289+
handleExternalJournalPerson(dto);
290+
}
288291
// taking this out because it may lead to server problems
289292
// case disease can change over time and there is currently no mechanism that would delete all related contacts
290293
// in this case the best solution is to only keep this hidden from the UI and still allow it in the backend
@@ -299,9 +302,6 @@ public ContactDto saveContact(ContactDto dto, boolean handleChanges) {
299302
createInvestigationTask(entity);
300303

301304
}
302-
if (existingContact != null) {
303-
handleExternalJournalPerson(dto);
304-
}
305305

306306
if (handleChanges) {
307307
updateContactVisitAssociations(existingContactDto, entity);

0 commit comments

Comments
 (0)