Commit 2e91f983 authored by Dainis Abols's avatar Dainis Abols
Browse files

Changed keys to short options

parent d0cc6209
......@@ -125,12 +125,12 @@ class SearchController extends ActionController
{
// Pre-define variables
$request = $_REQUEST;
$cacheHelper = new CacheHelper();
if (empty($request['query'])) {
$request = $this->request->getArguments();
}
$cacheHelper = new CacheHelper();
// Generate letter list
$letters = $cacheHelper->get('letters');
......@@ -143,7 +143,7 @@ class SearchController extends ActionController
// Get current page @FIXME There has to be a better way!
$this->currentPage = !empty($request['@widget_0']['currentPage']) ? (int)$request['@widget_0']['currentPage'] : 1;
$cleanQuery = strip_tags($request['query']);
$cleanQuery = strip_tags($request['query'] ?? ($_REQUEST['tx_lusearch_pi1']['query'] ?? ''));
// Fetch data from SOLR
if (!empty($cleanQuery)) {
......
......@@ -10,6 +10,11 @@ routeEnhancers:
_controller: 'Front::detail'
_arguments:
slug: 'uid'
-
routePath: 'letter={letter}'
_controller: 'Search::list'
_arguments:
letter: 'letter'
defaultController: 'Front::detail'
aspects:
slug:
......
......@@ -2,14 +2,14 @@
data-namespace-typo3-fluid="true">
<form class="searchResults__inputGroup">
<button type="submit" name="tx_lunames_pi1[submit]" title="{f:translate(key: 'form.submit')}"><i class="icon-lu-search-2"></i></button>
<button type="submit" title="{f:translate(key: 'form.submit')}"><i class="icon-lu-search-2"></i></button>
<textarea autocomplete="off" autofocus
placeholder="{f:translate(key: 'form.placeholder')}"
aria-label="{f:translate(key: 'form.placeholder')}"
aria-describedby="basic-addon2"
name="tx_lunames_pi1[query]"
name="query"
id="searchResultsQuery"
style="height: 35px;">{query}</textarea>
</form>
</html>
\ No newline at end of file
</html>
{
"name": "luitd/lu-names",
"version": "1.0.9",
"version": "1.0.10",
"description": "Jews in Latvia names database extension for TYPO3",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'lauris.karklis@lu.lv, dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '1.0.9',
'version' => '1.0.10',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-9.9.99',
......
......@@ -4,7 +4,7 @@ Jews in Latvia names database extension for TYPO3TYPO3 Extension for Regulations
## Version
1.0.9
1.0.10
## Dependecies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment