diff --git a/src/CalendarPage.php b/src/CalendarPage.php index fb294d3..6fa2f17 100644 --- a/src/CalendarPage.php +++ b/src/CalendarPage.php @@ -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([