diff --git a/sormas-ui/src/main/java/de/symeda/sormas/ui/events/eventParticipantsLineListing/layout/LineListingLayout.java b/sormas-ui/src/main/java/de/symeda/sormas/ui/events/eventParticipantsLineListing/layout/LineListingLayout.java index 6c0778110a8..b99c18a3228 100644 --- a/sormas-ui/src/main/java/de/symeda/sormas/ui/events/eventParticipantsLineListing/layout/LineListingLayout.java +++ b/sormas-ui/src/main/java/de/symeda/sormas/ui/events/eventParticipantsLineListing/layout/LineListingLayout.java @@ -23,6 +23,7 @@ import de.symeda.sormas.api.caze.CaseDataDto; import de.symeda.sormas.api.event.EventDto; import de.symeda.sormas.api.event.EventParticipantDto; +import de.symeda.sormas.api.feature.FeatureType; import de.symeda.sormas.api.i18n.Captions; import de.symeda.sormas.api.i18n.I18nProperties; import de.symeda.sormas.api.i18n.Strings; @@ -30,6 +31,7 @@ import de.symeda.sormas.api.infrastructure.region.RegionReferenceDto; import de.symeda.sormas.api.person.PersonDto; import de.symeda.sormas.api.utils.ValidationRuntimeException; +import de.symeda.sormas.ui.UiUtil; import de.symeda.sormas.ui.UserProvider; import de.symeda.sormas.ui.utils.ButtonHelper; import de.symeda.sormas.ui.utils.CssStyles; @@ -102,6 +104,12 @@ public LineListingLayout(Window window, EventDto eventDto) { region.setItems(FacadeProvider.getRegionFacade().getAllActiveByServerCountry()); } + if (UiUtil.enabled(FeatureType.HIDE_JURISDICTION_FIELDS)) { + region.setValue(FacadeProvider.getRegionFacade().getDefaultInfrastructureReference()); + district.setValue(FacadeProvider.getDistrictFacade().getDefaultInfrastructureReference()); + sharedInformationComponent.setVisible(false); + } + HorizontalLayout actionBar = new HorizontalLayout(); Button addLine = ButtonHelper.createIconButton(Captions.lineListingAddLine, VaadinIcons.PLUS, e -> { EventParticipantLineLayout newLine = buildNewLine(lineComponent);