Skip to content

Commit

Permalink
[GITFLOW]merging 'hotfix-1.69.1' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MateStrysewske committed Mar 15, 2022
2 parents 4943fea + 831feed commit 84c5b7b
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 18 deletions.
2 changes: 1 addition & 1 deletion sormas-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-base/dependencies/serverlibs.pom
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<packaging>pom</packaging>
<version>1.69.0</version>
<version>1.69.1</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion sormas-cargoserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-ear/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-keycloak-service-provider/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion sormas-rest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion sormas-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,15 @@ public void setPerson(PersonDto person) {

if (showHomeAddressForm) {
PersonDto searchedPerson = getSearchedPerson();
enterHomeAddressNow.setEnabled(searchedPerson != null ? false : true);
if (searchedPerson == null) {
enterHomeAddressNow.setEnabled(searchedPerson == null);
if (searchedPerson == null && (person == null || person.getAddress() == null)) {
homeAddressForm.clear();
homeAddressForm.setFacilityFieldsVisible(false, true);
homeAddressForm.setVisible(false);
} else {
} else if (searchedPerson != null) {
enterHomeAddressNow.setValue(false);
} else {
enterHomeAddressNow.setValue(person.getAddress() != null);
}
}

Expand Down Expand Up @@ -927,8 +929,10 @@ private void addHomeAddressForm() {
boolean isChecked = (boolean) e.getProperty().getValue();
addressHeader.setVisible(isChecked);
homeAddressForm.setVisible(isChecked);
homeAddressForm.clear();
homeAddressForm.setFacilityFieldsVisible(isChecked, true);
if (!isChecked) {
homeAddressForm.clear();
}
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,15 @@ protected void performTemplateUpdates() {
boolean showVaccinationSelector = documentVariables.isUsedEntity(RootEntityType.ROOT_VACCINATION.getEntityName());
if (showSampleSelector || showPathogenTestSelector || showVaccinationSelector) {
showAdditionalParameters();
sampleSelector.setVisible(showSampleSelector);
pathogenTestSelector.setVisible(showPathogenTestSelector);
vaccinationSelector.setVisible(showVaccinationSelector);
if (sampleSelector != null) {
sampleSelector.setVisible(showSampleSelector);
}
if (pathogenTestSelector != null) {
pathogenTestSelector.setVisible(showPathogenTestSelector);
}
if (vaccinationSelector != null) {
vaccinationSelector.setVisible(showVaccinationSelector);
}
} else {
hideAdditionalParameters();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ public void deleteAllSelectedItems(Collection<LabMessageIndexDto> selectedRows,
private PersonDto buildPerson(LabMessageMapper mapper) {
final PersonDto personDto = PersonDto.build();
mapper.mapToPerson(personDto);
mapper.mapToLocation(personDto.getAddress());
return personDto;
}

Expand Down
2 changes: 1 addition & 1 deletion sormas-widgetset/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<artifactId>sormas-base</artifactId>
<groupId>de.symeda.sormas</groupId>
<version>1.69.0</version>
<version>1.69.1</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 84c5b7b

Please sign in to comment.