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:
Daniel Siepmann 2017-10-26 10:05:32 +02:00
parent e321c424b4
commit 86d02f7b8d
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
2 changed files with 6 additions and 3 deletions

View file

@ -56,6 +56,12 @@ class SearchController extends ActionController
]
));
}
if ($this->arguments->hasArgument('searchRequest')) {
$this->arguments->getArgument('searchRequest')->getPropertyMappingConfiguration()
->allowAllProperties()
;
}
}
/**

View file

@ -31,9 +31,6 @@ call_user_func(
'search',
[
'Search' => 'search'
],
[
'Search' => 'search' // TODO: Enable caching. But submitting form results in previous result?!
]
);