From b7bef093ed60030eb6c752713c036feadfc7dc38 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 11 Jan 2016 20:35:51 -0500 Subject: [PATCH] CRM-17343 add contrib ID to template so invoice is generated --- CRM/Contribute/BAO/Contribution.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index e44de0544d..70fedbddd9 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2444,6 +2444,9 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac if ($values['event']['is_email_confirm']) { $values['is_email_receipt'] = 1; } + + $values['contributionId'] = $ids['contribution']; + return CRM_Event_BAO_Event::sendMail($ids['contact'], $values, $this->_relatedObjects['participant']->id, $this->is_test, $returnMessageText ); @@ -2728,6 +2731,10 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac if (!empty($values['lineItem']) && !empty($this->_relatedObjects['membership'])) { $values['useForMember'] = TRUE; } + + $template->assign('contributionId', $this->id); + $values['contributionId'] = $this->id; + //assign honor information to receipt message $softRecord = CRM_Contribute_BAO_ContributionSoft::getSoftContribution($this->id); -- 2.25.1