Skip to content

Commit

Permalink
Merge pull request #11148 from yashodha/CRM-21321
Browse files Browse the repository at this point in the history
CRM-21321 - Membership fields not loading in 'On behalf of' profile
  • Loading branch information
monishdeb authored Oct 24, 2017
2 parents 4359e03 + a6a083d commit 4383dc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,9 @@ public function buildComponentForm($id, $form) {
}

$fieldTypes = array('Contact', 'Organization');
if (!empty($form->_membershipBlock)) {
$fieldTypes = array_merge($fieldTypes, array('Membership'));
}
$contactSubType = CRM_Contact_BAO_ContactType::subTypes('Organization');
$fieldTypes = array_merge($fieldTypes, $contactSubType);

Expand Down

0 comments on commit 4383dc9

Please sign in to comment.