CRM-17908: text version of header/footer not used when auto-generating text version...
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 2 Feb 2016 10:09:34 +0000 (15:39 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 2 Feb 2016 10:09:34 +0000 (15:39 +0530)
----------------------------------------
* 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

index 9228474e041db9934cd7bff7f2b2417dda07ba8b..607ef31f12793053e47a82148a01bcb2a5d2e559 100644 (file)
@@ -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);
         }