If statement checking wrong attribute (#2098)

This commit is contained in:
Tadgh 2020-09-22 15:12:54 -04:00 committed by GitHub
parent 3debef6cd4
commit 0e5020fa0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ public class PersonHelper {
if (theAllowOverwriting || person.getName().isEmpty()) {
person.setName(patient.getName());
}
if (theAllowOverwriting || person.getName().isEmpty()) {
if (theAllowOverwriting || person.getAddress().isEmpty()) {
person.setAddress(patient.getAddress());
}
if (theAllowOverwriting || person.getTelecom().isEmpty()) {