From 2b65b5152871092ab09af5adbcdaf1b867ae6fa0 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 14 Jan 2016 00:55:58 +0530 Subject: [PATCH] minor fix --- CRM/Contribute/BAO/Contribution.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CRM/Contribute/BAO/Contribution.php b/CRM/Contribute/BAO/Contribution.php index 70fedbddd9..0091e4ceeb 100644 --- a/CRM/Contribute/BAO/Contribution.php +++ b/CRM/Contribute/BAO/Contribution.php @@ -2445,7 +2445,9 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac $values['is_email_receipt'] = 1; } - $values['contributionId'] = $ids['contribution']; + if (!empty($ids['contribution'])) { + $values['contributionId'] = $ids['contribution']; + } return CRM_Event_BAO_Event::sendMail($ids['contact'], $values, $this->_relatedObjects['participant']->id, $this->is_test, $returnMessageText @@ -2732,9 +2734,6 @@ INNER JOIN civicrm_activity ON civicrm_activity_contact.activity_id = civicrm_ac $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