From 22cb4b931c1c0d5c9a33d52f53bed24331a0d3e1 Mon Sep 17 00:00:00 2001 From: Omar abu hussein Date: Wed, 7 Feb 2018 03:35:32 +0200 Subject: [PATCH] CRM-21743: Fix creating new event template from existing one --- templates/CRM/Event/Form/ManageEvent/EventInfo.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl index 2423fc50c9..72403c31a4 100644 --- a/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl +++ b/templates/CRM/Event/Form/ManageEvent/EventInfo.tpl @@ -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'); }) }); -- 2.25.1