From 7b6f49591a07d8acf0ee6aa30c5187051849141b Mon Sep 17 00:00:00 2001 From: Dmitry Dulepov Date: Tue, 12 Dec 2023 13:55:01 +0200 Subject: [PATCH] [BUGFIX] Fix #3916: exception in CLI mode when using suggest TS example --- Configuration/TypoScript/Examples/Suggest/setup.typoscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/TypoScript/Examples/Suggest/setup.typoscript b/Configuration/TypoScript/Examples/Suggest/setup.typoscript index 185fc409bd..7ec04fd15a 100644 --- a/Configuration/TypoScript/Examples/Suggest/setup.typoscript +++ b/Configuration/TypoScript/Examples/Suggest/setup.typoscript @@ -23,7 +23,7 @@ tx_solr_suggest { } } -[traverse(request.getQueryParams(), 'tx_solr/callback') == ''] +[request && traverse(request.getQueryParams(), 'tx_solr/callback') == ''] tx_solr_suggest.config.additionalHeaders.10.header = Content-type: application/json [global]