From c283816e4ee7cc6784796afbbf397154b6e3102f Mon Sep 17 00:00:00 2001 From: Andrew West Date: Fri, 13 Sep 2019 12:54:04 +0100 Subject: [PATCH] #1253 Pass mailing id to alterMailContent hook https://lab.civicrm.org/dev/core/issues/1253 --- CRM/Mailing/BAO/Mailing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 9a24f8a9a8..c8e1a53060 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -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; -- 2.25.1