-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
(dev/core#2273) Contact type incorrectly set to Contribution due to '… #19277
Conversation
(Standard links)
|
Stacktrace
|
test this please |
@seamuslee001 this ^^ was the fail https://github.com/civicrm/civicrm-core/compare/master...eileenmcnaughton:falsefail?expand=1 addresses (I had a PR open against it a couple of months back but you weren't sold at the time so I closed it) |
@eileenmcnaughton I am surprised that more people haven't reported this. |
@yashodha I took a look at this & I couldn't actually replicate it with the instructions - ie it would not let me add a profile with contribution fields as the profile. I was able to add a profile that didn't have contribution fields and then go and edit it to add a field - but when I went back to the edit contribution page it was not visible - because it was not valid. It does load if you edit things in the right order but it seems like a misconfiguration All of that suggests that we should prevent people from misconfiguring contribution fields onto honoree profiles rather than make it work. It's a bit unclear how it would make sense to have contribution fields on honoree profiles but perhaps it works just due to code randomness (which would suggest it could break during other changes) |
@yashodha I'm not convinced the contribution fields should be supported in this case - but the patch makes sense in that the parameter ensures that the only value that could be returned is a valid contact type so I'm going to merge it on that narrow criteria rather than worrying about the whole scenario. (in other words merging this doesn't imply contribution fields are supported in honoree profiles) |
@eileenmcnaughton yes my point exactly, that contribution fields need not be supported but if by chance someone has added/removed such field from honoree profile don't return Contribution type for contact. Thanks for merging! |
…Honoree Profile'
Overview
Steps to replicate:
Create a contribution page with Honoree Section Enabled.
Choose a profile that includes a contribution field.
Make a contribution with this page with soft credit contact.
I was able to replicate the scenario on dmaster. We should restrict the profile type to Contact types when calculating for honoree profile.
Before
After