From 2c73b802d6fdb35e0a2fe186fed571d6aadaa3f8 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Thu, 4 May 2017 05:29:44 +1200 Subject: [PATCH] Fix SearchForm throwing a 404 on search The GridFieldAddExistingSearchHandler search has been converted to namespaces however this causes the FormAction to be incorrect and when performing a search, currently throws an error. The form name does not need to be namespaced. --- src/GridFieldAddExistingSearchHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GridFieldAddExistingSearchHandler.php b/src/GridFieldAddExistingSearchHandler.php index a4ef7cf..b420ef7 100644 --- a/src/GridFieldAddExistingSearchHandler.php +++ b/src/GridFieldAddExistingSearchHandler.php @@ -75,7 +75,7 @@ class GridFieldAddExistingSearchHandler extends RequestHandler { $form = new Form( $this, - 'SilverStripe\\CMS\\Search\\SearchForm', + 'SearchForm', $this->context->getFields(), new FieldList( FormAction::create('doSearch', _t('GridFieldExtensions.SEARCH', 'Search'))