From 10672453f950991ce02470881769375166e55289 Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 5 Sep 2018 23:44:26 +0100 Subject: [PATCH] Allow to specify template_id on URL when creating a new event --- CRM/Event/Form/ManageEvent/EventInfo.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Event/Form/ManageEvent/EventInfo.php b/CRM/Event/Form/ManageEvent/EventInfo.php index b6ee9a770c..571071d39b 100644 --- a/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/CRM/Event/Form/ManageEvent/EventInfo.php @@ -117,6 +117,8 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent { if (!empty($defaults['end_date'])) { list($defaults['end_date'], $defaults['end_date_time']) = CRM_Utils_Date::setDateDefaults($defaults['end_date'], 'activityDateTime'); } + + $defaults['template_id'] = $this->_templateId; return $defaults; } -- 2.25.1