This is an automated email from the ASF dual-hosted git repository.
manthan pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new c8fc04a Fix: Client Family Member editing issue (FINERACT-1314)
new e4d4102 Merge pull request #1735 from BLasan/issue-1314
c8fc04a is described below
commit c8fc04a16db59cfed68d9c29a72b5fddc4a18d87
Author: BLasan <[email protected]>
AuthorDate: Thu May 20 12:55:28 2021 +0530
Fix: Client Family Member editing issue (FINERACT-1314)
---
.../client/service/ClientFamilyMembersWritePlatformServiceImpl.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientFamilyMembersWritePlatformServiceImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientFamilyMembersWritePlatformServiceImpl.java
index 760cef1..8f2200e 100644
---
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientFamilyMembersWritePlatformServiceImpl.java
+++
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/client/service/ClientFamilyMembersWritePlatformServiceImpl.java
@@ -341,19 +341,19 @@ public class ClientFamilyMembersWritePlatformServiceImpl
implements ClientFamily
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);