From 9b3f1e8399c2cfbe348c9e798af8266267225f40 Mon Sep 17 00:00:00 2001 From: Carina Paul Date: Thu, 25 Jan 2024 10:29:18 +0200 Subject: [PATCH] #12902 - Hide jurisdiction related fields from bulk edit mode when hide jurisdiction is true --- .../src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java index 216d6f0fb70..60f672f1268 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/caze/CaseDataForm.java @@ -345,6 +345,7 @@ public CaseDataForm( addFields(); } +//TODO: test the next part public static void updateFacilityDetails(ComboBox cbFacility, TextField tfFacilityDetails) { if (cbFacility.getValue() != null) { boolean otherHealthFacility = ((FacilityReferenceDto) cbFacility.getValue()).getUuid().equals(FacilityDto.OTHER_FACILITY_UUID); @@ -1425,9 +1426,11 @@ public String getFormattedHtmlMessage() { private void hideJurisdictionFields() { getField(CaseDataDto.CASE_ORIGIN).setVisible(false); + getContent().getComponent(RESPONSIBLE_JURISDICTION_HEADING_LOC).setVisible(false); getContent().getComponent(PLACE_OF_STAY_HEADING_LOC).setVisible(false); differentPlaceOfStayJurisdiction.setVisible(false); + responsibleRegion.setVisible(false); responsibleDistrict.setVisible(false); responsibleCommunity.setVisible(false);