From e0fc6d8ea384f89c841d68923a91a1229ff6c373 Mon Sep 17 00:00:00 2001 From: yashodha Date: Thu, 4 Feb 2016 15:05:05 +0530 Subject: [PATCH] CRM-17908:text version of header/footer not used when auto-generating ---------------------------------------- * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 7a23b9e849..f62a3235f1 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -758,7 +758,7 @@ ORDER BY i.contact_id, i.{$tempColumn} if (!$this->templates) { $this->getHeaderFooter(); $this->templates = array(); - if ($this->body_text || property_exists($this->header, 'body_text') || property_exists($this->footer, 'body_text')) { + if ($this->body_text || !empty($this->header)) { $template = array(); if ($this->header->body_text) { $template[] = $this->header->body_text; -- 2.25.1