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

Commit 2f56b9e

Browse files
author
barnabartha
committed
SORMAS-Foundation#3424 - followups handle logic executed only in case contact is not dropped or converted
1 parent 19ab891 commit 2f56b9e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ public ContactDto saveContact(ContactDto dto, boolean handleChanges) {
308308
final boolean dropped = entity.getContactStatus() == ContactStatus.DROPPED;
309309
if (dropped || convertedToCase) {
310310
entity.setFollowUpStatus(FollowUpStatus.CANCELED);
311+
} else {
312+
contactService.updateFollowUpUntilAndStatus(entity);
311313
}
312-
313-
contactService.updateFollowUpUntilAndStatus(entity);
314314
contactService.udpateContactStatus(entity);
315315

316316
if (entity.getCaze() != null) {

0 commit comments

Comments
 (0)