CRM-13973-fixes : email receipt line item fix
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 7 Mar 2014 10:31:43 +0000 (16:01 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 7 Mar 2014 10:31:43 +0000 (16:01 +0530)
CRM/Event/Form/ParticipantFeeSelection.php

index 9126b4aff841ee5bd86e8bfad6692613ffaab012..caa45e16e77e3fffb869b42b6f391041273f54db 100644 (file)
@@ -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'];