Restore buildCustomData to contribution forms CRM-12331
authorColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 16:45:08 +0000 (09:45 -0700)
committerColeman Watts <coleman@civicrm.org>
Sun, 14 Apr 2013 16:45:08 +0000 (09:45 -0700)
CRM/Contribute/Form/Contribution.php

index 4b44a5784879c484d35e8fefe9ad28f40fb215f8..22391fb4f693681ef2ef0a42cdbd0c867b4056d2 100644 (file)
@@ -647,7 +647,8 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
     $financialType = $this->add('select', 'financial_type_id',
       ts('Financial Type'),
       array('' => ts('- select -')) + CRM_Contribute_PseudoConstant::financialType(),
-      TRUE
+      TRUE,
+      array('onChange' => "CRM.buildCustomData( 'Contribution', this.value );")
     );
 
     if (!$this->_mode) {