$params['total_amount'] = CRM_Utils_Rule::cleanMoney($params['total_amount']);
}
if ($this->_isPaidEvent) {
- [$contributionParams, $lineItem, $additionalParticipantDetails, $params] = $this->preparePaidEventProcessing($params);
+ [$contributionParams, $lineItem, $params] = $this->preparePaidEventProcessing($params);
}
$this->_params = $params;
}
if (!empty($params['send_receipt'])) {
- $result = $this->sendReceipts($params, $participants, $lineItem[0] ?? [], $additionalParticipantDetails ?? []);
+ $result = $this->sendReceipts($params, $participants);
}
// set the participant id if it is not set
}
}
- return [$contributionParams, $lineItem, $additionalParticipantDetails, $params];
+ return [$contributionParams, $lineItem, $params];
}
/**
/**
* @param $params
* @param array $participants
- * @param $lineItem
- * @param $additionalParticipantDetails
*
* @return array
* @throws \CRM_Core_Exception
* @throws \Brick\Money\Exception\UnknownCurrencyException
*/
- protected function sendReceipts($params, array $participants, $lineItem, $additionalParticipantDetails): array {
+ protected function sendReceipts($params, array $participants): array {
$sent = [];
$notSent = [];
$this->assignEventDetailsToTpl($params['event_id'], CRM_Utils_Array::value('role_id', $params), CRM_Utils_Array::value('receipt_text', $params));