Skip to content

Commit

Permalink
Update CalendarPage.php: Corrected insertBefore order
Browse files Browse the repository at this point in the history
  • Loading branch information
purplespider authored Sep 12, 2024
1 parent 782653f commit c6770ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CalendarPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getCMSFields()
{
$fields = parent::getCMSFields();

if ($this->EventTabFirst) $fields->insertBefore(new Tab('Events'), 'Main');
if ($this->EventTabFirst) $fields->insertBefore('Main', new Tab('Events'));

$config = GridFieldConfig_RecordEditor::create();
$config->getComponentByType(GridFieldSortableHeader::class)->setFieldSorting([
Expand Down

0 comments on commit c6770ec

Please sign in to comment.