Merge pull request #12054 from mattwire/deprecated_paymentprocessortype
authorEileen McNaughton <eileen@mcnaughty.com>
Sun, 29 Apr 2018 23:42:31 +0000 (11:42 +1200)
committerGitHub <noreply@github.com>
Sun, 29 Apr 2018 23:42:31 +0000 (11:42 +1200)
Remove unused code in CRM_Contribute_Form_ContributionPage_Amount::formRule

CRM/Contribute/Form/ContributionPage/Amount.php

index d5bf5d57000f74a079e3005471eb22fc9a9ba0a2..fc6486c24fd91fde50f3b44ee9344c50f4f56519 100644 (file)
@@ -423,16 +423,6 @@ class CRM_Contribute_Form_ContributionPage_Amount extends CRM_Contribute_Form_Co
       $errors['payment_processor'] = ts("Financial Account of account relationship of 'Expense Account is' is not configured for Financial Type : ") . $financialType;
     }
 
-    if (!empty($fields['is_recur_interval'])) {
-      foreach (array_keys($fields['payment_processor']) as $paymentProcessorID) {
-        $paymentProcessorTypeId = CRM_Core_DAO::getFieldValue(
-          'CRM_Financial_DAO_PaymentProcessor',
-          $paymentProcessorID,
-          'payment_processor_type_id'
-        );
-      }
-    }
-
     return $errors;
   }