Skip to content

Commit

Permalink
#12902 - Hide jurisdiction related fields from bulk edit mode when hi…
Browse files Browse the repository at this point in the history
…de jurisdiction is true
  • Loading branch information
carina29 committed Jan 25, 2024
1 parent 7c4fdab commit 9b3f1e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9b3f1e8

Please sign in to comment.