From f7770d24538cab858d697264c6b2acfba99f688a Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 6 Jun 2023 15:06:23 +1000 Subject: [PATCH] Fixes for custom templates --- app/Services/Email/EmailDefaults.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Services/Email/EmailDefaults.php b/app/Services/Email/EmailDefaults.php index 156bcceefa99..d17ebd8b41f5 100644 --- a/app/Services/Email/EmailDefaults.php +++ b/app/Services/Email/EmailDefaults.php @@ -230,7 +230,9 @@ class EmailDefaults $this->email->email_object->subject = strtr($this->email->email_object->subject, $this->email->email_object->variables); - if ($this->template != 'custom') { + + //06-06-2023 ensure we do not parse markdown in custom templates + if ($this->template != 'custom' && $this->template != 'email.template.custom') { $this->email->email_object->body = $this->parseMarkdownToHtml($this->email->email_object->body); }