From: kurund Date: Sat, 28 Feb 2015 20:51:30 +0000 (+0530) Subject: CRM-15756, more fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c75c831e13b19e53ed171241f5d5b5456c946dd;p=civicrm-core.git 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 --- 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);