Merge pull request #355 from Kitzanos/fixed-email-template-amendment
Cherry-pick (Changed response of amendment for email template)
This commit is contained in:
@@ -558,7 +558,12 @@ public class ApplicationAmendmentRequestDao {
|
|||||||
|
|
||||||
if (includeEmailContent) {
|
if (includeEmailContent) {
|
||||||
Map<String, String> bodyPlaceholders = emailNotificationDao.prepareEmailPlaceholders(applicationEntity, entity);
|
Map<String, String> bodyPlaceholders = emailNotificationDao.prepareEmailPlaceholders(applicationEntity, entity);
|
||||||
EmailContentResponse emailContent = emailNotificationDao.prepareEmailContent(applicationEntity, SystemEmailTemplatesEntityTypeEnum.DOCUMENTATION_INTEGRATION_REQUEST, hubEntity, bodyPlaceholders);
|
EmailContentResponse emailContent =null;
|
||||||
|
if(entity.getType()!=null && entity.getType().equals(ApplicationAmendmentRequestTypeEnum.SPECIAL.getValue())){
|
||||||
|
emailContent=emailNotificationDao.prepareEmailContent(applicationEntity, SystemEmailTemplatesEntityTypeEnum.SPECIAL_APPLICATION_AMENDMENT_REQUESTED, hubEntity, bodyPlaceholders);
|
||||||
|
}else {
|
||||||
|
emailContent = emailNotificationDao.prepareEmailContent(applicationEntity, SystemEmailTemplatesEntityTypeEnum.DOCUMENTATION_INTEGRATION_REQUEST, hubEntity, bodyPlaceholders);
|
||||||
|
}
|
||||||
String body = emailContent.getBody();
|
String body = emailContent.getBody();
|
||||||
response.setEmailTemplate(body);
|
response.setEmailTemplate(body);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user