diff --git a/Classes/Hooks/DatabaseRecordList.php b/Classes/Hooks/DatabaseRecordList.php index 158dda1..9a5fa36 100644 --- a/Classes/Hooks/DatabaseRecordList.php +++ b/Classes/Hooks/DatabaseRecordList.php @@ -45,10 +45,21 @@ public function modifyQuery( $route = $queryParams['route'] ?? ''; if (!empty($table) && $route === '/module/web/list') { $query = $queryParams['query'] ?? ''; - if ($query !== null) { + if (!empty($query)) { $filter = json_decode($query); - $filter ? $queryBuilder = GeneralUtility::makeInstance(QueryParser::class)->parse($filter, $queryBuilder) : null; + }else{ + $normalizedParams = $request->getAttribute('normalizedParams'); + $url = $normalizedParams->getHttpReferer(); + $query = parse_url($url); + $response = rawurldecode($query['query']); + // Recommended + parse_str($response, $output); + if(!empty($output['query'])){ + $filter = json_decode($output['query']); + } } + + $filter ? $queryBuilder = GeneralUtility::makeInstance(QueryParser::class)->parse($filter, $queryBuilder) : null; } return $queryBuilder; }