Skip to content

Commit

Permalink
Fix links for tabs on manage event (events use separate URLs for each…
Browse files Browse the repository at this point in the history
… tab but need selectedChild to be specified or the default tab is loaded
  • Loading branch information
mattwire committed Nov 30, 2018
1 parent 579e44f commit e6ac9af
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/EventInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/Fee.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class CRM_Event_Form_ManageEvent_Fee extends CRM_Event_Form_ManageEvent {
*/
public function preProcess() {
parent::preProcess();
$this->assign('selectedChild', 'fee');
}

/**
Expand Down
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function preProcess() {
$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);
Expand Down
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/Repeat.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions CRM/Event/Form/ManageEvent/ScheduleReminders.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions CRM/Friend/Form/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class CRM_Friend_Form_Event extends CRM_Event_Form_ManageEvent {

public function preProcess() {
parent::preProcess();
$this->assign('selectedChild', 'friend');
}

/**
Expand Down
1 change: 1 addition & 0 deletions CRM/PCP/Form/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class CRM_PCP_Form_Event extends CRM_Event_Form_ManageEvent {

public function preProcess() {
parent::preProcess();
$this->assign('selectedChild', 'pcp');
}

/**
Expand Down

0 comments on commit e6ac9af

Please sign in to comment.