From a6a083d86ca7729dc2b0b5e820a3d057473633bc Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 17 Oct 2017 18:55:35 +0530 Subject: [PATCH] CRM-21321 - Membership fields not loading in 'On behalf of' profile --- CRM/Contribute/Form/ContributionBase.php | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1