Can't create new events from a template using the API
Reproduction steps
- Create an event template and note its ID
- Attempt to create a new event using the API, by adding the
template_id
parameter with the ID from 1.
Expected behaviour
A new event is created with the values populated from the template. Works up to 5.58
Current behaviour
From 5.59 the newly created event is itself a template, rather than a fully fledged event.
Comments
I think this bugfix went too far -- that code needed moving rather than replacing. MR incoming
Edit: this bugfix https://github.com/civicrm/civicrm-core/commit/4bb246b6d43dfd5b3cf2a7e2b1f6b41368d85e59