Fix links for tabs on manage event (events use separate URLs for each tab but need...
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Thu, 29 Nov 2018 10:20:25 +0000 (10:20 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Fri, 30 Nov 2018 10:10:53 +0000 (10:10 +0000)
CRM/Event/Form/ManageEvent/EventInfo.php
CRM/Event/Form/ManageEvent/Fee.php
CRM/Event/Form/ManageEvent/Location.php
CRM/Event/Form/ManageEvent/Registration.php
CRM/Event/Form/ManageEvent/Repeat.php
CRM/Event/Form/ManageEvent/ScheduleReminders.php
CRM/Friend/Form/Event.php
CRM/PCP/Form/Event.php

index 4ca39edf26c88cbb2a47a67009a15c491d27f630..b1f0d7816ff9147739b23b414593c17b0572c685 100644 (file)
@@ -45,6 +45,7 @@ class CRM_Event_Form_ManageEvent_EventInfo extends CRM_Event_Form_ManageEvent {
    */
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'settings');
 
     if ($this->_id) {
       $this->assign('entityID', $this->_id);
index 10c4e23d7340abd5c03241bee9752dd3eac4da60..e477d320ab865019ae2f5d03cfe65e228572f46e 100644 (file)
@@ -60,6 +60,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
    */
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'fee');
   }
 
   /**
index d28b2187fd00effb2db1cc47675f4dfdb1efd210..602c1f991bc5dad8452c52659c95f157b1111741 100644 (file)
@@ -72,6 +72,7 @@ class CRM_Event_Form_ManageEvent_Location extends CRM_Event_Form_ManageEvent {
    */
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'location');
 
     $this->_values = $this->get('values');
     if ($this->_id && empty($this->_values)) {
index a39bc136a54261467ddeec4ee6b72888b28be82d..58aae9eea8eb9f41f6be09c2e2b8d098f1acc4df 100644 (file)
@@ -55,6 +55,7 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     $this->_profileBottomNumAdd = CRM_Utils_Array::value('addProfileNumAdd', $_GET, 0);
 
     parent::preProcess();
+    $this->assign('selectedChild', 'registration');
 
     $this->assign('addProfileBottom', $this->_addProfileBottom);
     $this->assign('profileBottomNum', $this->_profileBottomNum);
index 5d1bb1dfb1777a9c1b485044d258a53f415e99b9..e95c2245a0dc7f3670fa5e914b1c41ecc24fa060 100644 (file)
@@ -25,6 +25,7 @@ class CRM_Event_Form_ManageEvent_Repeat extends CRM_Event_Form_ManageEvent {
 
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'repeat');
     $this->assign('currentEventId', $this->_id);
 
     $checkParentExistsForThisId = CRM_Core_BAO_RecurringEntity::getParentFor($this->_id, 'civicrm_event');
index 475a0376718542635d0b5c0a98e6771fed01229e..1be9f471620af1e5ed57ca2e6e9fb5b2be712e4c 100644 (file)
@@ -47,6 +47,7 @@ class CRM_Event_Form_ManageEvent_ScheduleReminders extends CRM_Event_Form_Manage
    */
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'reminder');
     $setTab = CRM_Utils_Request::retrieve('setTab', 'Int', $this, FALSE, 0);
 
     $mapping = CRM_Utils_Array::first(CRM_Core_BAO_ActionSchedule::getMappings(array(
index 87e336bad83c288b1230d523cb111f9b8ab61e50..253be69ccc3c8343dd2689e3249750d9dec25d84 100644 (file)
@@ -48,6 +48,7 @@ class CRM_Friend_Form_Event extends CRM_Event_Form_ManageEvent {
 
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'friend');
   }
 
   /**
index 74ae82e4919e5a9a6fadc3dcfbe714cd6650d381..4e0e51977da0d624a4c626bfa500b58e52cc88bf 100644 (file)
@@ -49,6 +49,7 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent {
 
   public function preProcess() {
     parent::preProcess();
+    $this->assign('selectedChild', 'pcp');
   }
 
   /**