Skip to content

Commit

Permalink
Merge pull request #20 from ganeshtaru/mec-1.2.0.1-B2
Browse files Browse the repository at this point in the history
DST-89 : "Name" is not fetched to the email notification's
  • Loading branch information
Rediket authored Nov 10, 2023
2 parents 0fb53e7 + ea630b6 commit 015e82b
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,18 @@ public void sendNotification(RegistrationAdditionalInfoDTO registrationAdditiona
String nameField = JsonUtil.getJSONValue(
JsonUtil.getJSONObject(regProcessorIdentityJson, MappingJsonConstants.NAME),
MappingJsonConstants.VALUE);
String[] nameArray = nameField.toString().split(",");
for(String preferredLanguage:preferredLanguages) {
if (registrationAdditionalInfoDTO.getName() != null) {
attributes.put(nameField , registrationAdditionalInfoDTO.getName());
attributes.put(nameArray[0] + "_" + preferredLanguage, registrationAdditionalInfoDTO.getName());
} else {
attributes.put(nameField, "");
attributes.put(nameArray[0] + "_" + preferredLanguage, "");
}
if (nameArray.length > 1) {
for (int i = 1; i < nameArray.length; i++) {
attributes.put(nameArray[i] + "_" + preferredLanguage, "");
}
}

if (isProcessingSuccess) {
type = setNotificationTemplateType(registrationStatusDto, type);
Expand Down

0 comments on commit 015e82b

Please sign in to comment.