-
-
Notifications
You must be signed in to change notification settings - Fork 824
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/#3849 Fix profile group add for events #24633
dev/core/#3849 Fix profile group add for events #24633
Conversation
(Standard links)
|
@twomice here is the one |
@larssandergreen I'm not going to insist on a unit test on this one cos it's probably a tricky one to do a test for but if you want help writing one next time jump on chat.civicrm.org.... |
I'm testing r-run on this now. |
r-run: Pass Steps to reproduce:
Before (on master):
After (on patched master with this PR):
|
thanks @twomice @larssandergreen |
Thanks for reviewing @twomice and thanks @eileenmcnaughton. |
a small inroads into your PRs :-) |
FYI this caused a regression because the new code adds a permission check that fails for anon users. See #25025 |
Overview
This code didn't properly add contacts to groups when using profiles that were set to add to groups in event registrations with multiple participants or multiple profiles.
Before
Secondary registrants were added to groups for the primary registrant profiles.
Additionally, when more than two profiles were in use, contacts were not added to all groups, depending on configuration of the event (didn't spend too much time digging into the details on what exactly was happening).
After
All registrants are added to the appropriate groups for the profiles set in the event registration.