From: yashodha Date: Tue, 2 Feb 2016 10:09:34 +0000 (+0530) Subject: CRM-17908: text version of header/footer not used when auto-generating text version... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=906038a2f836c6ee3fd2d9b7215f30a14a48aeea;p=civicrm-core.git 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 --- 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); }