#1253 Pass mailing id to alterMailContent hook
authorAndrew West <awest@humanism.org.uk>
Fri, 13 Sep 2019 11:54:04 +0000 (12:54 +0100)
committerGitHub <noreply@github.com>
Fri, 13 Sep 2019 11:54:04 +0000 (12:54 +0100)
https://lab.civicrm.org/dev/core/issues/1253

CRM/Mailing/BAO/Mailing.php

index 9a24f8a9a821fff24f22d26346cd1a306dbd5d44..c8e1a53060e8c1ebe51799086e270655c9fba503 100644 (file)
@@ -713,6 +713,7 @@ class CRM_Mailing_BAO_Mailing extends CRM_Mailing_DAO_Mailing {
         $this->templates['subject'] = implode("\n", $template);
       }
 
+      $this->templates['mailingID'] = $this->id;
       CRM_Utils_Hook::alterMailContent($this->templates);
     }
     return $this->templates;