CRM-21743: Fix creating new event template from existing one
authorOmar abu hussein <opetmar91@gmail.com>
Wed, 7 Feb 2018 01:35:32 +0000 (03:35 +0200)
committerOmar abu hussein <opetmar91@gmail.com>
Wed, 7 Feb 2018 01:39:53 +0000 (03:39 +0200)
templates/CRM/Event/Form/ManageEvent/EventInfo.tpl

index 2423fc50c9b261bf8e00da22aee79c86fb11120a..72403c31a411e8cc77dcdfa1fb8d7bdffd96295c 100644 (file)
     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');
     })
   });