From c654c1199076918e4197ae87020205b852903502 Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 14 Aug 2013 17:29:40 +0530 Subject: [PATCH] fixes for CRM-13221 ---------------------------------------- * CRM-13221: postProcess hook doesn't fire when creating an event http://issues.civicrm.org/jira/browse/CRM-13221 --- CRM/Event/Form/ManageEvent.php | 2 -- CRM/Event/Form/ManageEvent/EventInfo.php | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Event/Form/ManageEvent.php b/CRM/Event/Form/ManageEvent.php index bf04dbb559..739b8f5de5 100644 --- a/CRM/Event/Form/ManageEvent.php +++ b/CRM/Event/Form/ManageEvent.php @@ -351,8 +351,6 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form { } } - $this->postProcessHook(); - if ($this->controller->getButtonName('submit') == "_qf_{$className}_upload_done") { if ($this->_isTemplate) { CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/admin/eventTemplate', diff --git a/CRM/Event/Form/ManageEvent/EventInfo.php b/CRM/Event/Form/ManageEvent/EventInfo.php index 42a4662a84..503437ffa8 100644 --- a/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/CRM/Event/Form/ManageEvent/EventInfo.php @@ -338,6 +338,8 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent { $this->set('id', $event->id); + $this->postProcessHook(); + if ($this->_action & CRM_Core_Action::ADD) { $url = 'civicrm/event/manage/location'; $urlParams = "action=update&reset=1&id={$event->id}"; -- 2.25.1