-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form][DelegatingValidator] error_bubbling => false doesn't work with date field #3018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, a few questions:
return an error? because, as shown in http://symfony.com/doc/2.0/reference/forms/types/text.html, 'text' field type does not allow the option 'input'
|
Hi!
Copy/paste mistake. Of course there was no 'input' while I was testing it.
It is linked to Propel objects.
I don't use HTML5. I'm talking about symfony error messages after form submission.
Yes, I've read it but it is not related to problem with non-working error_bubbling. Pozdrawiam ecenter sp. z o.o.Domeny, hosting, poczta wideo :: http://www.ecenter.pl :: Niniejsza wiadomość przekazana została Państwu przez ecenter sp z o.o. |
It looks like it only occurs from within an embedded form. I've printed those mathcing attempts as In UserType form (non-embedded) I have a field named birthday of type date:
As you can see, the MATCH comes on the correct child field - the birthday field. In RegistrationForm I have an embedded form named user of type UserType with the same birthday field:
As you can see here, there is no match for the birthday field, and the match is for the user form. In mappedPath, the birthday field is That's why there's no match |
Hi!
I've just noticied, that error_bubbling set to false for field type 'date' doesn't make any effect.
$builder->add('receipt_time', 'date', array(
'required' => true,
'input' => 'string',
'error_bubbling' => false
));
error for field above are displayed as form errors.
$builder->add('receipt_time', 'text', array(
'required' => true,
'input' => 'string',
'error_bubbling' => false
));
errors from above are displayed correctly as field errors.
Please fix asap.
Best regards
Krzychu
The text was updated successfully, but these errors were encountered: