Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 1ac4af1

Browse files
lgallgal
authored andcommitted
SORMAS-Foundation#3413 rename names of other guardians field in the mobile app
1 parent c0381d2 commit 1ac4af1

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

sormas-app/app/src/main/java/de/symeda/sormas/app/backend/common/DatabaseHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ public void onUpgrade(SQLiteDatabase db, ConnectionSource connectionSource, int
17941794
case 250:
17951795
currentVersion = 248;
17961796

1797-
getDao(Person.class).executeRaw("ALTER TABLE person ADD column nameOfOtherGuardians varchar(512);");
1797+
getDao(Person.class).executeRaw("ALTER TABLE person ADD column namesOfOtherGuardians varchar(512);");
17981798

17991799
// ATTENTION: break should only be done after last version
18001800
break;

sormas-app/app/src/main/java/de/symeda/sormas/app/backend/person/Person.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class Person extends PseudonymizableAdo {
8383
@Column(length = COLUMN_LENGTH_DEFAULT)
8484
private String fathersName;
8585
@Column(length = COLUMN_LENGTH_DEFAULT)
86-
private String nameOfOtherGuardians;
86+
private String namesOfOtherGuardians;
8787
@Column
8888
private Integer birthdateDD;
8989
@Column
@@ -441,12 +441,12 @@ public void setFathersName(String fathersName) {
441441
this.fathersName = fathersName;
442442
}
443443

444-
public String getNameOfOtherGuardians() {
445-
return nameOfOtherGuardians;
444+
public String getNamesOfOtherGuardians() {
445+
return namesOfOtherGuardians;
446446
}
447447

448-
public void setNameOfOtherGuardians(String nameOfOtherGuardians) {
449-
this.nameOfOtherGuardians = nameOfOtherGuardians;
448+
public void setNamesOfOtherGuardians(String namesOfOtherGuardians) {
449+
this.namesOfOtherGuardians = namesOfOtherGuardians;
450450
}
451451

452452
public Region getPlaceOfBirthRegion() {

sormas-app/app/src/main/java/de/symeda/sormas/app/backend/person/PersonDtoHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void fillInnerFromDto(Person target, PersonDto source) {
103103
target.setCauseOfDeathDetails(source.getCauseOfDeathDetails());
104104
target.setMothersName(source.getMothersName());
105105
target.setFathersName(source.getFathersName());
106-
target.setNameOfOtherGuardians(source.getNameOfOtherGuardians());
106+
target.setNamesOfOtherGuardians(source.getNamesOfOtherGuardians());
107107
target.setPlaceOfBirthRegion(DatabaseHelper.getRegionDao().getByReferenceDto(source.getPlaceOfBirthRegion()));
108108
target.setPlaceOfBirthDistrict(DatabaseHelper.getDistrictDao().getByReferenceDto(source.getPlaceOfBirthDistrict()));
109109
target.setPlaceOfBirthCommunity(DatabaseHelper.getCommunityDao().getByReferenceDto(source.getPlaceOfBirthCommunity()));
@@ -174,7 +174,7 @@ public void fillInnerFromAdo(PersonDto target, Person source) {
174174

175175
target.setMothersName(source.getMothersName());
176176
target.setFathersName(source.getFathersName());
177-
target.setNameOfOtherGuardians(source.getNameOfOtherGuardians());
177+
target.setNamesOfOtherGuardians(source.getNamesOfOtherGuardians());
178178

179179
if (source.getPlaceOfBirthRegion() != null) {
180180
target.setPlaceOfBirthRegion(

sormas-app/app/src/main/res/layout/fragment_person_edit_layout.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -484,17 +484,17 @@
484484

485485
<de.symeda.sormas.app.component.controls.ControlTextEditField
486486
android:id="@+id/person_fathersName"
487-
android:nextFocusForward="@+id/person_nameOfOtherGuardians"
487+
android:nextFocusForward="@+id/person_namesOfOtherGuardians"
488488
app:value="@={data.fathersName}"
489489
app:imeOptions="actionNext"
490490
style="@style/ControlSecondOfTwoColumnsStyle" />
491491

492492
</LinearLayout>
493493

494494
<de.symeda.sormas.app.component.controls.ControlTextEditField
495-
android:id="@+id/person_nameOfOtherGuardians"
495+
android:id="@+id/person_namesOfOtherGuardians"
496496
android:nextFocusForward="@+id/person_phone"
497-
app:value="@={data.nameOfOtherGuardians}"
497+
app:value="@={data.namesOfOtherGuardians}"
498498
app:imeOptions="actionNext"
499499
style="@style/ControlSingleColumnStyle" />
500500

sormas-app/app/src/main/res/layout/fragment_person_read_layout.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@
371371
</LinearLayout>
372372

373373
<de.symeda.sormas.app.component.controls.ControlTextReadField
374-
android:id="@+id/person_nameOfOtherGuardians"
375-
app:value="@{data.nameOfOtherGuardians}"
374+
android:id="@+id/person_namesOfOtherGuardians"
375+
app:value="@{data.namesOfOtherGuardians}"
376376
style="@style/ControlSingleColumnStyle" />
377377

378378
<LinearLayout

0 commit comments

Comments
 (0)