Skip to content

Commit

Permalink
[GITFLOW]merging 'hotfix-1.68.3' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
MateStrysewske committed Mar 3, 2022
2 parents cabe91e + 2cf5c70 commit 947ba0d
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 12 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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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.68.2</version>
<version>1.68.3</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 @@ -914,6 +914,7 @@ private void addHomeAddressForm() {
homeAddressForm.setValue(new LocationDto());
homeAddressForm.setCaption(null);
homeAddressForm.setWidthFull();
homeAddressForm.setDisableFacilityAddressCheck(true);

getContent().addComponent(homeAddressForm, HOME_ADDRESS_LOC);
homeAddressForm.setVisible(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,9 @@ private CommitDiscardWrapperComponent<CaseCreateForm> getCaseCreateComponent(
});
caseCreateComponent.addDiscardListener(window::close);
caseCreateComponent.getWrappedComponent().setValue(caseDto);
if (FacadeProvider.getPersonFacade().isValidPersonUuid(person.getUuid())) {
caseCreateComponent.getWrappedComponent().setSearchedPerson(person);
}
caseCreateComponent.getWrappedComponent().setPerson(person);

return caseCreateComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public class LocationEditForm extends AbstractEditForm<LocationDto> {
private boolean districtRequiredOnDefaultCountry;
private boolean skipCountryValueChange;
private boolean skipFacilityTypeUpdate;
private boolean disableFacilityAddressCheck;

public LocationEditForm(FieldVisibilityCheckers fieldVisibilityCheckers, UiFieldAccessCheckers fieldAccessCheckers) {
super(LocationDto.class, LocationDto.I18N_PREFIX, true, fieldVisibilityCheckers, fieldAccessCheckers);
Expand Down Expand Up @@ -479,7 +480,7 @@ public String getFormattedHtmlMessage() {
// We use isAttached() to avoid the fuss when initializing the form, it may seems a bit hacky, but it is
// necessary because isModified() will still return true for a short duration even if we keep the very same
// value because of this field dependencies to other fields and the way updateEnumValues works
if (facility.isAttached()) {
if (facility.isAttached() && !disableFacilityAddressCheck) {
if (facility.getValue() != null) {
FacilityDto facilityDto =
FacadeProvider.getFacilityFacade().getByUuid(((FacilityReferenceDto) getField(LocationDto.FACILITY).getValue()).getUuid());
Expand Down Expand Up @@ -780,6 +781,10 @@ private boolean areFacilityDetailsRequired() {
return facility.getValue() != null && ((FacilityReferenceDto) facility.getValue()).getUuid().equals(FacilityDto.OTHER_FACILITY_UUID);
}

public void setDisableFacilityAddressCheck(boolean disableFacilityAddressCheck) {
this.disableFacilityAddressCheck = disableFacilityAddressCheck;
}

private static class MapPopupView extends PopupView {

private static final long serialVersionUID = 6119339732442336000L;
Expand Down Expand Up @@ -831,4 +836,5 @@ public void setCoordinates(GeoLatLon coordinates) {
this.coordinates = coordinates;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,8 @@ protected Button createPersonSearchButton(String personSearchLoc) {
public PersonDto getSearchedPerson() {
return searchedPerson;
}

public void setSearchedPerson(PersonDto searchedPerson) {
this.searchedPerson = searchedPerson;
}
}
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.68.2</version>
<version>1.68.3</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down

0 comments on commit 947ba0d

Please sign in to comment.