minor fix
authormonishdeb <monish.deb@webaccessglobal.com>
Wed, 13 Jan 2016 19:25:58 +0000 (00:55 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Wed, 13 Jan 2016 19:25:58 +0000 (00:55 +0530)
CRM/Contribute/BAO/Contribution.php

index 70fedbddd927335fe6bf069705b9751e558e150a..0091e4ceeb1715fc7b229b0661f4d06f64f2e3cd 100644 (file)
@@ -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);