- Issue created by @endless_wander
- Status changed to Needs review
about 1 year ago 7:31am 7 February 2024 - 🇨🇦Canada endless_wander
Adding a patch that uses the real bundle name for the Registrant type, which for my site is "default."
RegistrantListBuilder->getCustomFIelds()
will now use all the fields attached to this bundle and the resulting list looks as expected with all custom fields.Is there actually a way to add different Registrant bundles?
/admin/structure/events/registrant/types/add
goes nowhere and there is no route for adding Registrant types. (In fact, only EventSeries have such a route for adding new types. Was this a recent change?). Is "default" the only possible bundle name for Registrants, then? Is it thus okay to hardcode "default" as the bundle name within RegistrantListBuilder?I tried out a clean install on simplytest.me and "default" is the bundle name created when installing the recurring_events_registration submodule.
I would prefer to use Recurring Events Views to power the Registrant lists, but it is not compatible with Series Registration at this time. I have been untangling this today and will post another issue related to that.
For now, I believe it is important that the getCustomFields() method returns custom fields as expected and so I believe this patch will be a fix.
- 🇺🇸United States owenbush Denver, CO
Thanks for raising this issue and providing a patch. I'll get that merged shortly.
To answer your question about creating a Registrant type, you cannot create one directly, just like you cannot create an Event Instance type directly. If you create a new Event Series type, it will also create an equivalent (same name) Event Instance type and Registrant type. The idea is that if you create an Event Series type, then the Instance and Registrant types will match.
An example, if you created a 'Youth' event series type with a number of instances, those instances would be of type 'Youth' too. And any registrants for a 'Youth' series or instance will also be of type 'Youth'. This allows for creating different registration experiences and forms per type.
-
owenbush →
committed 4c2f09e2 on 2.0.x
Issue #3419667 by endless_wander, owenbush: RegistrantListBuilder->...
-
owenbush →
committed 4c2f09e2 on 2.0.x
- Status changed to Fixed
about 1 year ago 5:55pm 9 February 2024 - 🇺🇸United States owenbush Denver, CO
This has been merged into 2.0.x and will be part of the next tag release.
Automatically closed - issue fixed for 2 weeks with no activity.