Skip to content

Commit

Permalink
Registrar - use initial templates for embedded app (#3192)
Browse files Browse the repository at this point in the history
* For embedded applications, we want to use templates of initial
applications.
  • Loading branch information
Vojtech-Sassmann authored Apr 30, 2021
1 parent ba15c42 commit 81da4bc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@ public String getPropertyFromConfiguration(String propertyName) {
private ApplicationMail getMailByParams(Integer formId, AppType appType, MailType mailType) {
ApplicationMail mail;

// We want to use the initial notifications for the embedded applications
if (appType == AppType.EMBEDDED) {
appType = AppType.INITIAL;
}

// get mail def
try {
List<ApplicationMail> mails = jdbc.query(MAILS_SELECT_BY_PARAMS, (resultSet, arg1) -> new ApplicationMail(resultSet.getInt("id"),
Expand Down

0 comments on commit 81da4bc

Please sign in to comment.