From: yashodha <yashodha@cividesk.com> Date: Tue, 17 Oct 2017 13:25:35 +0000 (+0530) Subject: CRM-21321 - Membership fields not loading in 'On behalf of' profile X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a6a083d86ca7729dc2b0b5e820a3d057473633bc;p=civicrm-core.git CRM-21321 - Membership fields not loading in 'On behalf of' profile --- diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index fd2b20e11b..adbf82b2ec 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -938,6 +938,9 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_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);