Commit cbb948af authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

Fix membership mail PDF to properly use preamble and PDF toggles

parent be309639
......@@ -111,7 +111,7 @@ public class DefaultMailerService implements MailerService {
renderHTMLPDF(
membershipTemplateWeb
.data(EMAIL_DATA_VAR, data, CONTEXT_VAR,
new MailerDataContext(applicationGroup, LocalDateTime.now(), false, true))
new MailerDataContext(applicationGroup, LocalDateTime.now(), true, false))
.render()),
"application/pdf");
mailer.send(m);
......@@ -165,7 +165,7 @@ public class DefaultMailerService implements MailerService {
Mail m = Mail.withHtml(recipient, subject,
membershipTemplateWeb
.data(EMAIL_DATA_VAR, data, CONTEXT_VAR,
new MailerDataContext(applicationGroup, LocalDateTime.now(), true, includePreamble))
new MailerDataContext(applicationGroup, LocalDateTime.now(), false, includePreamble))
.render());
m.setText(
membershipTemplate
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment