From: deb.monish Date: Tue, 1 Aug 2017 18:45:30 +0000 (+0530) Subject: CRM-21002: Credit card type icons are incorrectly populated on backoffice live mode X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c0670d18d9ab654c03001043888a4310b0c763d;p=civicrm-core.git CRM-21002: Credit card type icons are incorrectly populated on backoffice live mode --- diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 0e22ae0a98..a136758872 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -360,7 +360,8 @@ WHERE contribution_id = {$id} } } } - CRM_Financial_Form_Payment::addCreditCardJs($id); + // CRM-21002: pass the default payment processor ID whose credit card type icons should be populated first + CRM_Financial_Form_Payment::addCreditCardJs($this->_paymentProcessor['id']); $this->assign('recurringPaymentProcessorIds', empty($this->_recurPaymentProcessors) ? '' : implode(',', array_keys($this->_recurPaymentProcessors))