From 906038a2f836c6ee3fd2d9b7215f30a14a48aeea Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 2 Feb 2016 15:39:34 +0530 Subject: [PATCH] CRM-17908: text version of header/footer not used when auto-generating text version of email ---------------------------------------- * CRM-17908: text version of header/footer not used when auto-generating text version of email https://issues.civicrm.org/jira/browse/CRM-17908 --- CRM/Mailing/BAO/Mailing.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 9228474e04..607ef31f12 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -762,19 +762,22 @@ ORDER BY i.contact_id, i.{$tempColumn} $template = array(); if ($this->header->body_text) { $template[] = $this->header->body_text; - } else { + } + else { $template[] = CRM_Utils_String::htmlToText($this->header->body_html); } if ($this->body_text) { $template[] = $this->body_text; - } else { + } + else { $template[] = CRM_Utils_String::htmlToText($this->body_html); } if ($this->footer->body_text) { $template[] = $this->footer->body_text; - } else { + } + else { $template[] = CRM_Utils_String::htmlToText($this->footer->body_html); } -- 2.25.1