CRM-18448 Update recurring contribution - prevent 'Financial Type is required field...
authorKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 12:20:43 +0000 (22:20 +1000)
committerKen West <ken.west@internode.on.net>
Wed, 20 Apr 2016 12:20:43 +0000 (22:20 +1000)
CRM/Contribute/Form/UpdateSubscription.php

index a6837c5cdcafc72e3fbed3e3d086b1717e14049e..b1b1ed8f9cfa9c896f10fa078b2563c003bdb070 100644 (file)
@@ -193,7 +193,7 @@ class CRM_Contribute_Form_UpdateSubscription extends CRM_Core_Form {
     }
 
     if (CRM_Contribute_BAO_ContributionRecur::supportsFinancialTypeChange($this->contributionRecurID)) {
-      $this->addEntityRef('financial_type_id', ts('Financial Type'), array('entity' => 'FinancialType'), TRUE);
+      $this->addEntityRef('financial_type_id', ts('Financial Type'), array('entity' => 'FinancialType'), !$this->_selfService);
     }
 
     $type = 'next';