From cc5cfb243f31ccb37a248d08fb9414e81fd39125 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 12 Nov 2024 17:12:28 +1300 Subject: [PATCH] ENH Update code to reflect changes in silverstripe/admin --- src/Forms/GridField/GridFieldFilterHeader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Forms/GridField/GridFieldFilterHeader.php b/src/Forms/GridField/GridFieldFilterHeader.php index eb8b84a4d50..fa273c1b0bc 100755 --- a/src/Forms/GridField/GridFieldFilterHeader.php +++ b/src/Forms/GridField/GridFieldFilterHeader.php @@ -3,7 +3,7 @@ namespace SilverStripe\Forms\GridField; use LogicException; -use SilverStripe\Admin\LeftAndMain; +use SilverStripe\Admin\FormSchemaController; use SilverStripe\Control\Controller; use SilverStripe\Control\HTTPResponse; use SilverStripe\Core\ClassInfo; @@ -425,7 +425,7 @@ public function getSearchFormSchema(GridField $gridField) return new HTTPResponse(_t(__CLASS__ . '.SearchFormFaliure', 'No search form could be generated'), 400); } - $parts = $gridField->getRequest()->getHeader(LeftAndMain::SCHEMA_HEADER); + $parts = $gridField->getRequest()->getHeader(FormSchemaController::SCHEMA_HEADER); $schemaID = $gridField->getRequest()->getURL(); $data = FormSchema::singleton() ->getMultipartSchema($parts, $schemaID, $form);