Remove always true parameter
authoreileen <emcnaughton@wikimedia.org>
Tue, 15 Dec 2020 02:25:56 +0000 (15:25 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 16 Dec 2020 00:53:03 +0000 (13:53 +1300)
CRM/Member/Form/Membership.php

index caa74005d93eb8de727c5a0690cb91f51542ae5a..5c1e1e6a1df61c3b069d3b3290e93260fd3580a1 100644 (file)
@@ -1325,8 +1325,7 @@ DESC limit 1");
           ],
           $financialType,
           FALSE,
-          $this->_bltID,
-          TRUE
+          $this->_bltID
         );
 
         //create new soft-credit record, CRM-13981
@@ -1877,8 +1876,6 @@ DESC limit 1");
    *
    * @param int $billingLocationID
    *   ID of billing location type.
-   * @param bool $isRecur
-   *   Is this recurring?
    *
    * @return \CRM_Contribute_DAO_Contribution
    *
@@ -1892,8 +1889,7 @@ DESC limit 1");
     $contributionParams,
     $financialType,
     $online,
-    $billingLocationID,
-    $isRecur
+    $billingLocationID
   ) {
     $transaction = new CRM_Core_Transaction();
     $contactID = $contributionParams['contact_id'];
@@ -1914,7 +1910,7 @@ DESC limit 1");
     if (!isset($params['is_email_receipt']) && $isEmailReceipt) {
       $params['is_email_receipt'] = $isEmailReceipt;
     }
-    $params['is_recur'] = $isRecur;
+    $params['is_recur'] = TRUE;
     $params['payment_instrument_id'] = $contributionParams['payment_instrument_id'] ?? NULL;
     $recurringContributionID = CRM_Contribute_Form_Contribution_Confirm::processRecurringContribution($form, $params, $contactID, $financialType);