CRM-21813 : Parameter list mismatch (#11734)
authorAniessh Sethh <aniesshsethh@gmail.com>
Wed, 7 Mar 2018 03:30:53 +0000 (09:00 +0530)
committerEileen McNaughton <eileen@mcnaughty.com>
Wed, 7 Mar 2018 03:30:53 +0000 (16:30 +1300)
* Fix for CRM-21813

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'];