-
-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-21321 - Membership fields not loading in 'On behalf of' profile #11148
Conversation
@monishdeb can you please look at this? I think this is an oversight where you can't add the membership fields on contribution page when behalf profile is activated. |
@yashodha great addition - thanks for your work 👍 |
@yashodha @eileenmcnaughton there is a validation written about not to allow membership profile IF onbehalf profile is set, it rather suggests us to move the membership fields to onBehalfOf profile. I don't see what was the need for this as removing those two validations allows me to add membership profile and upon submission, it correctly records custom field data. So instead of amending support for Membership type fields here in |
I assume the issue arises if fields get added to the profile that are about the membership itself - not just custom data fields? |
yes, issue is membership fields w/o custom fields are not shown on onBehalf profile. Actually due to the formrule in place, if the contribution page is already configured with onbehalf profile then you can not add membership Profile (including custom fields), it rather instruct you to add the membership fields (w/o custom field) in onbehalf profile. Which looks a bit odd to me. So I was suggesting why not remove the validation in first place. |
So removing this doesn't allow 'membership_status_id' or anything functional to be added? |
So I think that is why the block is there - it was considered too tricky to filter appropriate fields so it was just blocked |
Yeah but then core doesn't respect this block, see #11151 where it doesn't allow membership fields to be added to onBehalf profile. Strange. So should I merge this PR then? |
@monishdeb yes #11151 is a precursor to this. The underlying documentation also suggests that the exception be made while adding membership fields to an 'on behalf' profile but is not working cause the logic doesn't handle the conditions well. |
Agree, tested the patch and works fine. Merging now. |
So to clarify - is it now possible to add inappropriate fields (membership type/ membership status) to an on behalf profile and have them show up on a public page? |
@eileenmcnaughton still no as you need to apply/merge #11151 first, which will allows you to add membership fields to on-behalf profile. This patch will then allows you to load n show membership fields on on-behalf profile and yes it will show the inappropriate fields on public page too based on what 'Visibility' chosen. Isn't this appropriate as per the formrule written? |
CRM-21321 - Membership fields not loading in 'On behalf of' profile
Overview
Membership fields not loading in 'On behalf of' profile
Before
After