Issue #3219541 by tunic, longwave: Remove redundant call $this->requestStack->getCurrentRequest() in FormBuilder::buildForm
parent
ba1ff55e88
commit
8cc548c09e
|
@ -302,7 +302,6 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
|
|||
}
|
||||
|
||||
// If this form is an AJAX request, disable all form redirects.
|
||||
$request = $this->requestStack->getCurrentRequest();
|
||||
if ($ajax_form_request = $request->query->has(static::AJAX_FORM_REQUEST)) {
|
||||
$form_state->disableRedirect();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue