diff --git a/Classes/Service/SolrServiceProvider.php b/Classes/Service/SolrServiceProvider.php index 3a0822b9..27c448cd 100644 --- a/Classes/Service/SolrServiceProvider.php +++ b/Classes/Service/SolrServiceProvider.php @@ -490,8 +490,18 @@ public function isExtendedSearch() && array_key_exists($fieldInfo['id'], $this->requestArguments['q']) && $this->requestArguments['q'][$fieldInfo['id']] ) { - $result = true; - break; + // Check if the request argument is an array itself (appies to field type "Range") + if (is_array($this->requestArguments['q'][$fieldInfo['id']])) { + foreach ($this->requestArguments['q'][$fieldInfo['id']] as $key => $value) { + if ('' !== $value) { + $result = true; + break; + } + } + } else { + $result = true; + break; + } } } } diff --git a/Classes/ViewHelpers/Page/ScriptViewHelper.php b/Classes/ViewHelpers/Page/ScriptViewHelper.php index 4c15e367..066690db 100644 --- a/Classes/ViewHelpers/Page/ScriptViewHelper.php +++ b/Classes/ViewHelpers/Page/ScriptViewHelper.php @@ -81,6 +81,7 @@ public static function renderStatic( if ($scriptPath) { $pageRenderer->addJsFooterLibrary($name, $scriptPath); + return ''; } @@ -93,11 +94,11 @@ public static function renderStatic( if ($fileNameFromArguments) { $scriptPath = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\Resource\FilePathSanitizer::class)->sanitize($fileNameFromArguments); $pageRenderer->addJsFooterLibrary($name, $scriptPath); - } - else { + } else { $content = $renderChildrenClosure(); $pageRenderer->addJsFooterInlineCode($name, $content); } + return ''; } }