From 86d02f7b8d6930e32affd1058398d33756f91e45 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 26 Oct 2017 10:05:32 +0200 Subject: [PATCH] TASK: Allow integrators to use GET with minimal overhead Allow to map search request even if no trusted properties exist. Also cache initial call to plugin. This allows to use GET as submit for forms with minimal arguments in URL. --- Classes/Controller/SearchController.php | 6 ++++++ ext_localconf.php | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Classes/Controller/SearchController.php b/Classes/Controller/SearchController.php index 0fa7f73..e484fcd 100644 --- a/Classes/Controller/SearchController.php +++ b/Classes/Controller/SearchController.php @@ -56,6 +56,12 @@ class SearchController extends ActionController ] )); } + + if ($this->arguments->hasArgument('searchRequest')) { + $this->arguments->getArgument('searchRequest')->getPropertyMappingConfiguration() + ->allowAllProperties() + ; + } } /** diff --git a/ext_localconf.php b/ext_localconf.php index 54bf43b..5c42c9c 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -31,9 +31,6 @@ call_user_func( 'search', [ 'Search' => 'search' - ], - [ - 'Search' => 'search' // TODO: Enable caching. But submitting form results in previous result?! ] );