Skip to content

Commit

Permalink
MOSIP-28185 registration confirmation notification corrected (mosip#1789
Browse files Browse the repository at this point in the history
)

* MOSIP-28185 registration confirmation notification corrected

Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>

* MOSIP-28185 code fix for packet validator

Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>

---------

Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
Co-authored-by: Sowmya Ujjappa Banakar <[email protected]>
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
3 people committed Jan 30, 2024
1 parent 1d1e910 commit 062f3f4
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,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);
} else if (!isValidSupervisorStatus) {
Expand Down

0 comments on commit 062f3f4

Please sign in to comment.