$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
$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);