Skip to content

Commit

Permalink
Merge pull request apache#1735 from BLasan/issue-1314
Browse files Browse the repository at this point in the history
Fix: Client Family Member editing issue (FINERACT-1314)
  • Loading branch information
thesmallstar authored May 29, 2021
2 parents 46a4048 + c8fc04a commit e4d4102
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,19 @@ public CommandProcessingResult updateFamilyMember(Long familyMemberId, JsonComma
clientFamilyMember.setRelationship(relationship);
}

if (command.longValueOfParameterNamed("maritalStatusId") != null) {
if (command.longValueOfParameterNamed("maritalStatusId") != 0) {
maritalStatusId = command.longValueOfParameterNamed("maritalStatusId");
maritalStatus = this.codeValueRepository.getOne(maritalStatusId);
clientFamilyMember.setMaritalStatus(maritalStatus);
}

if (command.longValueOfParameterNamed("genderId") != null) {
if (command.longValueOfParameterNamed("genderId") != 0) {
genderId = command.longValueOfParameterNamed("genderId");
gender = this.codeValueRepository.getOne(genderId);
clientFamilyMember.setGender(gender);
}

if (command.longValueOfParameterNamed("professionId") != null) {
if (command.longValueOfParameterNamed("professionId") != 0) {
professionId = command.longValueOfParameterNamed("professionId");
profession = this.codeValueRepository.getOne(professionId);
clientFamilyMember.setProfession(profession);
Expand Down

0 comments on commit e4d4102

Please sign in to comment.