Skip to content

Commit

Permalink
#4985: Disable externalId of person if externalSurveillanceTool is en…
Browse files Browse the repository at this point in the history
…abled
  • Loading branch information
ChristopherRiedel committed Apr 9, 2021
1 parent 8734b24 commit 101dc9c
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -301,8 +301,9 @@ protected void addFields() {
((ComboBox) addField(PersonDto.CITIZENSHIP)).addItems(countries);

addFields(PersonDto.PASSPORT_NUMBER, PersonDto.NATIONAL_HEALTH_ID);
if (!FacadeProvider.getExternalSurveillanceToolFacade().isFeatureEnabled()) {
addField(PersonDto.EXTERNAL_ID);
Field externalId = addField(PersonDto.EXTERNAL_ID);
if (FacadeProvider.getExternalSurveillanceToolFacade().isFeatureEnabled()) {
externalId.setReadOnly(true);
}
TextField externalTokenField = addField(PersonDto.EXTERNAL_TOKEN);
Label externalTokenWarningLabel = new Label(I18nProperties.getString(Strings.messagePersonExternalTokenWarning));
Expand Down

0 comments on commit 101dc9c

Please sign in to comment.