New Event using a template - clicking "Continue" doesn't save custom data
When creating a New Event from an Event Template, and entering custom data for the event, hitting "Continue" doesn't save the custom data. This happens for me on 5.10.4, on the CiviHosting demo which is running 5.10.0, and the CiviCRM Sandbox running 5.12.alpha1.
How to reproduce
- Add a custom field to Event entities
- Click Events > New event
- Choose an Event Template
- Enter the mandatory fields and the custom data
- Click Continue
- Reload the page to force CiviCRM to fetch the event from the database
- Visit the Info and Settings tab
- The custom data is unset
In my debugger I had a breakpoint in my implementation of hook_civicrm_pre() and this didn't trigger when Continue was pressed, but did when Save or Save and Done were pressed. If Continue bypasses pre() then perhaps it skips the Custom Data too?
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information