fix(SearchController): replace superglobal with ServerRequest->has()

Replace `empty($_REQUEST['ajax_page_request'])` with
`! $request->has('ajax_page_request')` to use the injected
ServerRequest consistently.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
This commit is contained in:
Thomas Vincent 2026-02-28 20:56:40 -08:00
parent d4cbd06f1d
commit 12ff061018
No known key found for this signature in database
GPG Key ID: DDE49EA87D9A4F77

View File

@ -90,7 +90,7 @@ final readonly class SearchController implements InvocableController
}
// If we are in an Ajax request, we need to exit after displaying all the HTML
if ($request->isAjax() && empty($_REQUEST['ajax_page_request'])) {
if ($request->isAjax() && ! $request->has('ajax_page_request')) {
return $this->response->response();
}