From 6c0670d18d9ab654c03001043888a4310b0c763d Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 2 Aug 2017 00:15:30 +0530 Subject: [PATCH] CRM-21002: Credit card type icons are incorrectly populated on backoffice live mode --- CRM/Contribute/Form/AbstractEditPayment.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- 2.25.1