mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 04:56:11 +01:00
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.
This commit is contained in:
parent
e321c424b4
commit
86d02f7b8d
2 changed files with 6 additions and 3 deletions
|
@ -56,6 +56,12 @@ class SearchController extends ActionController
|
|||
]
|
||||
));
|
||||
}
|
||||
|
||||
if ($this->arguments->hasArgument('searchRequest')) {
|
||||
$this->arguments->getArgument('searchRequest')->getPropertyMappingConfiguration()
|
||||
->allowAllProperties()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,9 +31,6 @@ call_user_func(
|
|||
'search',
|
||||
[
|
||||
'Search' => 'search'
|
||||
],
|
||||
[
|
||||
'Search' => 'search' // TODO: Enable caching. But submitting form results in previous result?!
|
||||
]
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue