From 1e9eaa10950aea7843291e893c3e5b8bfd4cbafd Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 19 Nov 2024 17:45:19 +1300 Subject: [PATCH] ENH Update code to reflect changes in silverstripe/admin (#11463) --- 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);