Skip to content

Commit

Permalink
fix links in facets
Browse files Browse the repository at this point in the history
  • Loading branch information
BFallert committed Nov 5, 2024
1 parent 32c83bb commit cbe8d64
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Classes/Controller/AbstractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,33 @@ protected function getLanguageService(): LanguageService
*/
protected function getParametersSafely(string $parameterName)
{
//var_dump($parameterName);
//var_dump('<hr>getArguments');
//var_dump($this->request->getArguments());
//var_dump('<hr>getQueryParams');
//var_dump($this->request->getQueryParams());
//var_dump('<hr>');
if ($this->request->hasArgument($parameterName)) {
return $this->request->getArgument($parameterName);
}
if ($this->request->getQueryParams()) {
$myQueryParams = $this->request->getQueryParams();
$myType = '';
if (array_key_exists('tx_dlf_search', $myQueryParams)) {
$myType = 'tx_dlf_search';
} elseif (array_key_exists('tx_dlf_listview', $myQueryParams)) {
$myType = 'tx_dlf_listview';
}
if ($myType <> '') {
$myDLFSearch = $myQueryParams[$myType];
if (array_key_exists($parameterName, $myDLFSearch)) {
return($myDLFSearch[$parameterName]);
}
} else {
var_dump('<hr>getQueryParams unerwarteter Type');
var_dump($this->request->getQueryParams());
};
}
return null;
}

Expand Down

0 comments on commit cbe8d64

Please sign in to comment.