CRM-18570 When creating a new event using a template the new event screen is taking the default values directly from the custom fields, and not from what's saved in the event template.
Original issue: https://issues.civicrm.org/jira/browse/CRM-18570
When creating a new event using a template the new event screen is taking the default values directly from the custom fields, and not from what's saved in the event template.
Selecting a template from new/edit Event gets the values from the custom field in 4.6.38 but in 5.x the custom field values are ignored and the defaults are used.
There are some changes in the function copy() between 4.6 and 5.x, https://lab.civicrm.org/dev/core/blob/master/CRM/Event/BAO/Event.php#L927