From 6c75c831e13b19e53ed171241f5d5b5456c946dd Mon Sep 17 00:00:00 2001 From: kurund Date: Sun, 1 Mar 2015 02:21:30 +0530 Subject: [PATCH] CRM-15756, more fixes ---------------------------------------- * CRM-15756: Back-office Submit Credit Card Contribution form: card # validation is no longer working https://issues.civicrm.org/jira/browse/CRM-15756 --- CRM/Contribute/Form/Contribution.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index da3cbdc61e..8dbf488261 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -602,6 +602,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $this->assign('billingPanes', $billingPanes); $this->assign('allPanes', $allPanes); + $this->addFormRule(array('CRM_Contribute_Form_Contribution', 'formRule'), $this); + if ($this->_formType) { $this->assign('formType', $this->_formType); return; @@ -884,8 +886,6 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $financialType->freeze(); } - $this->addFormRule(array('CRM_Contribute_Form_Contribution', 'formRule'), $this); - // if contribution is related to membership or participant freeze Financial Type, Amount if ($this->_id && isset($this->_values['tax_amount'])) { $componentDetails = CRM_Contribute_BAO_Contribution::getComponentDetails($this->_id); -- 2.25.1