merged branch goohib/fix-form-component-typo (PR #5323)
Commits
-------
bca68ca
Fixed a typo
Discussion
----------
Fixed a typo
The CSRF error message won't be translated due to this typo even if the translator is enabled.
This commit is contained in:
commit
2df222bd08
@ -65,7 +65,7 @@ class CsrfValidationListener implements EventSubscriberInterface
|
||||
|
||||
if ($form->isRoot() && $form->getConfig()->getOption('compound')) {
|
||||
if (!isset($data[$this->fieldName]) || !$this->csrfProvider->isCsrfTokenValid($this->intention, $data[$this->fieldName])) {
|
||||
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form'));
|
||||
$form->addError(new FormError('The CSRF token is invalid. Please try to resubmit the form.'));
|
||||
}
|
||||
|
||||
unset($data[$this->fieldName]);
|
||||
|
Reference in New Issue
Block a user