CRM-21002: Credit card type icons are incorrectly populated on backoffice live mode
authordeb.monish <monish.deb@jmaconsulting.biz>
Tue, 1 Aug 2017 18:45:30 +0000 (00:15 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Tue, 1 Aug 2017 18:45:30 +0000 (00:15 +0530)
CRM/Contribute/Form/AbstractEditPayment.php

index 0e22ae0a984c078357b8d08ded611b5a97d478fe..a136758872a8bdc01b52ff4820929eb5183db8ec 100644 (file)
@@ -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))