Commit 1084cc1d authored by mattwire's avatar mattwire
Browse files

Fix creation of template from template

parent ce3f7218
......@@ -215,7 +215,7 @@ function advanced_events_civicrm_pre($op, $objectName, $id, &$params) {
case 'Event':
switch ($op) {
case 'create':
if (!empty($params['template_id'])) {
if (!empty($params['template_id']) && empty($params['template_title'])) {
// This is a new event being created against a template, populate some parameters
$params['is_template'] = 0;
$params['template_title'] = '';
......
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