Skip to content

Commit

Permalink
[BUGFIX] Exception in CLI mode when using suggest TS example
Browse files Browse the repository at this point in the history
This change fixes an exception in CLI mode due to the missing request object

Fixes: TYPO3-Solr#3916
  • Loading branch information
dmitryd authored Jan 18, 2024
1 parent a16fec0 commit 119f557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Configuration/TypoScript/Examples/Suggest/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 119f557

Please sign in to comment.