Skip to content

Commit 1c2ba64

Browse files
authored
Merge pull request #160 from PSMRI/sn/3.6.2
Family members list is not displaying properly
2 parents 1de7c5b + 6f23596 commit 1c2ba64

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎src/main/java/com/iemr/common/identity/service/IdentityService.java‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,18 @@ public void editIdentity(IdentityEditDTO identity) throws MissingMandatoryFields
10391039
if (benDetails.getOther() != null) {
10401040
mbDetl.setOther(benDetails.getOther());
10411041
}
1042+
if (mbDetl.getOccupationId() == null && benDetails.getOccupationId() != null) {
1043+
mbDetl.setOccupationId(benDetails.getOccupationId());
1044+
}
1045+
if (mbDetl.getOccupation() == null && benDetails.getOccupation() != null) {
1046+
mbDetl.setOccupation(benDetails.getOccupation());
1047+
}
1048+
if (mbDetl.getEducationId() == null && benDetails.getEducationId() != null) {
1049+
mbDetl.setEducationId(benDetails.getEducationId());
1050+
}
1051+
if (mbDetl.getEducation() == null && benDetails.getEducation() != null) {
1052+
mbDetl.setEducation(benDetails.getEducation());
1053+
}
10421054

10431055
// Extract and set extra fields
10441056
// String identityJson = new Gson().toJson(json);

‎src/main/java/com/iemr/common/identity/service/familyTagging/FamilyTagServiceImpl.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,8 @@ public String getFamilyDetailsByBeneficiaryId(String request) throws IEMRExcepti
306306
}
307307

308308
private void addFamilyMembersToList(List<MBeneficiarydetail> list, List<FamilyMembers> responseList) {
309-
StringBuilder name = new StringBuilder("");
310309
for (MBeneficiarydetail obj : list) {
311-
310+
StringBuilder name = new StringBuilder("");
312311
FamilyMembers famObj = new FamilyMembers();
313312
BigInteger benRegId = benMappingRepo.getBenRegId(obj.getBeneficiaryDetailsId(), obj.getVanID());
314313
if (benRegId != null)

0 commit comments

Comments
 (0)