Remove unused code in CRM_Contribute_Form_ContributionPage_Amount::formRule
$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;
}