Unverified Commit e24cd817 authored by eileen's avatar eileen 🎱 Committed by GitHub

Merge pull request #11644 from omarabuhussein/CRM-21743-fix-copying-event-template

CRM-21743: Fix creating new event template from existing one
parents b460b45c 22cb4b93
......@@ -175,7 +175,7 @@
var $form = $('form.{/literal}{$form.formClass}{literal}');
$('#template_id', $form).change(function() {
$(this).closest('.crm-ajax-container, #crm-main-content-wrapper')
.crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val()})})
.crmSnippet({url: CRM.url('civicrm/event/add', {action: 'add', reset: 1, template_id: $(this).val(), is_template: $("input[name='is_template']").val()})})
.crmSnippet('refresh');
})
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment