From: Matthew Wire (MJW Consulting) Date: Wed, 5 Sep 2018 22:44:26 +0000 (+0100) Subject: Allow to specify template_id on URL when creating a new event X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=10672453f950991ce02470881769375166e55289;p=civicrm-core.git Allow to specify template_id on URL when creating a new event --- 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; }