CRM-21813 : Parameter list mismatch (#11734)
[civicrm-core.git] / CRM / Event / BAO / Participant.php
index 23e47ecf9bde388ad1518bca6db30bc7a7ea94d6..1a8edcc2a9f2e7b97cf51262790009187b35707c 100644 (file)
@@ -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'];