fixes for CRM-13221
authorkurund <kurund@civicrm.org>
Wed, 14 Aug 2013 11:59:40 +0000 (17:29 +0530)
committerkurund <kurund@civicrm.org>
Wed, 14 Aug 2013 11:59:40 +0000 (17:29 +0530)
----------------------------------------
* CRM-13221: postProcess hook doesn't fire when creating an event
  http://issues.civicrm.org/jira/browse/CRM-13221

CRM/Event/Form/ManageEvent.php
CRM/Event/Form/ManageEvent/EventInfo.php

index bf04dbb559e834a1af4cc90498be5a8ecced03c3..739b8f5de5d0c43ccb6a6d26e69f87ab0b5efbe4 100644 (file)
@@ -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',
index 42a4662a842e04437526f5d9f1bcb809bc73e5d3..503437ffa8b12ffa69722ba7358800c6970e58e9 100644 (file)
@@ -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}";