rename contribution type to financial type
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 26 Jan 2015 23:18:54 +0000 (12:18 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 26 Jan 2015 23:18:54 +0000 (12:18 +1300)
CRM/Member/BAO/Membership.php

index d19c71e82a738fdd601af708a02c058fc8cb1eb0..38f42056a23932304fb869f46a68b66855a3c493 100644 (file)
@@ -2200,9 +2200,9 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
    * @return CRM_Contribute_BAO_Contribution
    */
   public static function processSecondaryFinancialTransaction($contactID, &$form, $tempParams, $isTest, $lineItems, $minimumFee, $financialTypeID) {
-    $contributionType = new CRM_Financial_DAO_FinancialType();
-    $contributionType->id = $financialTypeID;
-    if (!$contributionType->find(TRUE)) {
+    $financialType = new CRM_Financial_DAO_FinancialType();
+    $financialType->id = $financialTypeID;
+    if (!$financialType->find(TRUE)) {
       CRM_Core_Error::fatal(ts("Could not find a system table"));
     }
     $tempParams['amount'] = $minimumFee;
@@ -2254,7 +2254,7 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
       $tempParams,
       $result,
       $contactID,
-      $contributionType,
+      $financialType,
       $pending,
       TRUE,
       $isTest,