CRM-16555 follow up fix - the credit card js got removed from membership etc forms
authoreileenmcnaugton <eileen@fuzion.co.nz>
Tue, 25 Aug 2015 22:15:02 +0000 (10:15 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Tue, 25 Aug 2015 22:15:33 +0000 (10:15 +1200)
CRM/Contribute/Form/AbstractEditPayment.php
CRM/Contribute/Form/Contribution.php

index a0cc965feeaa827f4f09741106a7ed6f6d981a41..096c07da8325552a776ee0aef15e69fc4469c28a 100644 (file)
@@ -440,6 +440,7 @@ LEFT JOIN  civicrm_contribution on (civicrm_contribution.contact_id = civicrm_co
           $this->_recurPaymentProcessors[$id] = $this->_processors[$id];
         }
       }
+      CRM_Financial_Form_Payment::addCreditCardJs();
     }
     $this->assign('recurringPaymentProcessorIds',
       empty($this->_recurPaymentProcessors) ? '' : implode(',', array_keys($this->_recurPaymentProcessors))
index 4719dc8ebaa9ce54de1acc04e1c9a58c8a889973..84a579b7d9e86da9c563fef1566e3bc6e12748fe 100644 (file)
@@ -290,7 +290,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
 
     // Set title
     if ($this->_mode) {
-      CRM_Financial_Form_Payment::addCreditCardJs();
       $this->setPageTitle($this->_ppID ? ts('Credit Card Pledge Payment') : ts('Credit Card Contribution'));
     }
     else {