From c6770eca8da7342c5737df1b7cfe1076b21ea507 Mon Sep 17 00:00:00 2001 From: James Cocker Date: Thu, 12 Sep 2024 14:04:10 +0100 Subject: [PATCH] Update CalendarPage.php: Corrected insertBefore order --- src/CalendarPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([