From 0d6af924c38e74ea718e3187447a1c58b4dee02a Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Fri, 29 Mar 2013 16:43:48 -0700 Subject: [PATCH] CRM-12247 --- CRM/Mailing/BAO/Mailing.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 9d72cf3c74..84ff78f343 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -769,6 +769,11 @@ ORDER BY i.contact_id, i.{$tempColumn} if ($this->body_html) { $this->_getTokens('html'); + if (!$this->body_text) { + // Since the text template was created from html, use the html tokens. + // @see CRM_Mailing_BAO_Mailing::getTemplates() + $this->tokens['text'] = $this->tokens['html']; + } } if ($this->body_text) { -- 2.25.1