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

Commit d406119

Browse files
SORMAS-Foundation#2946 - Disable disease fields when creating a source contact
1 parent aa36a30 commit d406119

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sormas-ui/src/main/java/de/symeda/sormas/ui/contact/ContactCreateForm.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ protected void addFields() {
269269
getContent().addComponent(removeCaseButton, REMOVE_CASE_LOC);
270270
removeCaseButton.setVisible(false);
271271
}
272+
if (asSourceContact) {
273+
setEnabled(false, ContactDto.DISEASE, ContactDto.DISEASE_DETAILS);
274+
}
272275

273276
addValueChangeListener(e -> {
274277
updateFieldVisibilitiesByCase(hasCaseRelation);

0 commit comments

Comments
 (0)