CRM-14734 - fix notices for anonymous contact viewing a mailing.
authorDave Greenberg <dave@civicrm.org>
Thu, 19 Jun 2014 23:21:04 +0000 (16:21 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 19 Jun 2014 23:21:04 +0000 (16:21 -0700)
----------------------------------------
* CRM-14734:
  https://issues.civicrm.org/jira/browse/CRM-14734

CRM/Mailing/Page/View.php

index d61bc62be94e6c0da8a5ca5fc8d64921b2d3a131..5753d43462e0fb40742ee3fcdf857e60c3f800b3 100644 (file)
@@ -141,6 +141,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page {
     );
 
     // get contact detail and compose if contact id exists
+    $returnProperties = $this->_mailing->getReturnProperties();
     if (isset($this->_contactID)) {
       //get details of contact with token value including Custom Field Token Values.CRM-3734
       $returnProperties = $this->_mailing->getReturnProperties();
@@ -164,7 +165,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page {
         get_class($this)
       );
 
-      $details = $details[0][0];
+      $details = $details[0];
       $contactId = 0;
     }
     $mime = &$this->_mailing->compose(NULL, NULL, NULL, $contactId,