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:
Fabien Potencier 2012-08-22 17:51:59 +02:00
commit 2df222bd08

View File

@ -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]);