Batch Update via Profile does not supply data for editing when custom fields created after participant added to event
Overview
When trying to "update via Profile" on event participants, some of the custom fields for specific roles do not pull through to the form for editing.
Reproduction steps
- add a participant to an event
- create custom fields for participants
- add fields page
- name: test participant
- used for: Participants (Event Name) > Select three (not sure if 'All' will reproduce)
- Add field
- simple radio field will do
- Add field
- Administer profiles > reserved profile > "Participant Status" profile > fields
- add fields
- add the 'test participant' radio button fields created above
- do participant search for participant created at step 1.
- select the created participant
- actions > update via profile
- select profile Participant Status
Current behaviour
notice the radio field created column is there, but does not contain any data or data structure for the participant
Expected behaviour
All participants have the custom fields pull through
Environment information
- CiviCRM 5.24.4
- PHP: 7.3
- __CMS: Drupal-7.72
- Database: _MySQL 5.7.7
- __Web Server: Nginx