From: Aniessh Sethh Date: Wed, 7 Mar 2018 03:30:53 +0000 (+0530) Subject: CRM-21813 : Parameter list mismatch (#11734) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9a05ea5249f290bd92f813cfdb301b03b8186007;p=civicrm-core.git CRM-21813 : Parameter list mismatch (#11734) * Fix for CRM-21813 --- diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index 23e47ecf9b..1a8edcc2a9 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -1845,7 +1845,7 @@ WHERE civicrm_participant.contact_id = {$contactID} AND * @param int $discountedPriceFieldOptionID * ID of the civicrm_price_field_value field for the discount id. */ - public static function createDiscountTrxn($eventID, $contributionParams, $feeLevel, $discountedPriceFieldOptionID) { + public static function createDiscountTrxn($eventID, $contributionParams, $feeLevel, $discountedPriceFieldOptionID = NULL) { $financialTypeID = $contributionParams['contribution']->financial_type_id; $total_amount = $contributionParams['total_amount'];