-
Notifications
You must be signed in to change notification settings - Fork 23
Unable to edit registration if event does not allow registrant to create more than one registration #170
Comments
I can confirm this is an issue. |
I also encountered this problem. Do you have a solution? |
Unfortunately, no, I don't…
… Le 13 févr. 2019 à 10:21, e-Mole ***@***.***> a écrit :
I also encountered this problem. Do you have a solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#170 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABAFuAB9nt74HZi7x1iTj_YyErjkx_YFks5vM9j_gaJpZM4U3XS0>.
|
Maybe this can help: #183 |
Thanks! But #183 has not resolved the issue with editing :-(. |
We solved this issue by enabling "allow duplicate registrants" on all events, and then created a custom validation function that checks to see if they are already booked and returns a form error in that case. It's kind of a work around, since it eliminates the usefulness of "allow duplicates", but we never allow more than 1 registration by a single user anyway. Instead, we created a field called, "How many guests will be joining you" which increases/decreases the count of the Maximum Allowed for a particular event. |
@rdworianyn Thanks for hint. How did you solve the "validation function"? |
Here's a fix I'm submitting for consideration: The validation function includes a check against a whitelist of existing users, that is supposed to prevent this issue. However, the whitelist was never getting populated for the edit form. |
@nplowman Thanks a lot! Works perfectly :-) |
If an event does not allow a registrant to register more than once, no one can edit an existing registration for that event (neither the registrant, nor an administrator).
You get the "Userxxx cannot register for this event." error message.
The text was updated successfully, but these errors were encountered: