-
-
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
Allow multiple registrations from search actions #26303
Allow multiple registrations from search actions #26303
Conversation
(Standard links)
|
Yay - this is in the part of the form that is separated out from the parent class - way less scary! I wonder if |
@eileenmcnaughton Presumably you shouldn't have been able to select an event that you don't have permission to access, so couldn't be trying to register people for an event you don't have access to, but I'm happy to add a FALSE if you think it is less likely to cause problems. |
@larssandergreen just trying to think through the user experience of this - it feels possible people are used to using this action 'safe in the knowledge' the contacts won't be double registered & quietly double registering them might actually be unexpected. Perhaps on validate we should check & then ? something - a check box? a confirm dialog to check its what they meant Also - when I tried the register form in testing I hit notices / undeclared properties. That, combined with this makes me think we should do something along the lines of to split out the 2 forms validations (I haven't given that a spin yet - I suspect this block should be outside the other IFs https://github.com/civicrm/civicrm-core/pull/26305/files#diff-bf1322d204b564c54597cb3cea15d8cd1479303297fab55c9eb6d20eb4e05e9bR175-R177 ) |
Yeah re permissions we can probably get away with the implicit true (famous last words) |
@eileenmcnaughton Maybe it would be enough to just report to the user something like: |
@larssandergreen I've been meaning to get to doing the next dev-digest so I'll include this in there |
If the event has 'multiple registrations' turn on (which is off by default) then the user wants to be able to register folks more than once and it's OK to allow that to happen. But I agree with Lars that the popup notification should be changed. |
a60ec7b
to
8e19e29
Compare
I have added an alert when this happens: "%1 contacts were already registered for this event, but have been added a second time." |
This change makes sense to me. |
Overview
If
Allow same email and multiple registrations?
is enabled for an event, contacts can be registered for the same event more than once. This is currently possible from the front end and from Register Event Participant and Add Event Registration, but not when using Register participants for event from search actions.Before
When attempting to register a contact for an event, the contact is not registered again and a message pops up to tell you N contacts were already registered.
After
Now if
Allow same email and multiple registrations?
is enabled, contacts are registered as usual even if they are already registered for the event.