From: Pratik Joshi Date: Fri, 7 Mar 2014 10:31:43 +0000 (+0530) Subject: CRM-13973-fixes : email receipt line item fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d7b6888265307edab7493e8550d8640acd1d07dd;p=civicrm-core.git CRM-13973-fixes : email receipt line item fix --- diff --git a/CRM/Event/Form/ParticipantFeeSelection.php b/CRM/Event/Form/ParticipantFeeSelection.php index 9126b4aff8..caa45e16e7 100644 --- a/CRM/Event/Form/ParticipantFeeSelection.php +++ b/CRM/Event/Form/ParticipantFeeSelection.php @@ -237,6 +237,13 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form { } function emailReceipt(&$params) { + $updatedLineItem = CRM_Price_BAO_LineItem::getLineItems($this->_participantId, 'participant'); + $lineItem = array(); + if ($updatedLineItem) { + $lineItem[] = $updatedLineItem; + } + $this->assign('lineItem', empty($lineItem) ? FALSE : $lineItem); + // offline receipt sending if (array_key_exists($params['from_email_address'], $this->_fromEmails['from_email_id'])) { $receiptFrom = $params['from_email_address'];