-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Report a bug in bootstrap_4_horizontal_layout.html.twig #34008
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
Can you please create a small example application that allows to reproduce your issue? |
If you create a single checkbox (e.g. I agree privacy policy) and set it to non-required in template,
and set a validator for it with
You will see how odd it looks like! As I said |
Symfony version(s) affected: master branch Description How to reproduce
Additional context |
Thanks for creating testcase. I think I found another bug that if you add 'Error' in your translator catalog, the 'ERROR' label is not translated, the same about csrf error message. Do these work for you? |
@nimasdj , sorry for the late response, translation works well for me :) |
Thank you @abdellatif05 for the reproducer it helped a lot! |
…bbuh) This PR was merged into the 3.4 branch. Discussion ---------- [TwigBridge] do not render errors for checkboxes twice | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34008 | License | MIT | Doc PR | Commits ------- 9eddea9 do not render errors for checkboxes twice
I have this in template
and this in controller
But I get the error printed twice as here is the output html:
It seems something is wrong in
bootstrap_4_horizontal_layout.html.twig
template.In source code:
{{form_errors(form)}}
should be removed. No need to this. It still prints error without it. This one causes in duplicate error printing.The text was updated successfully, but these errors were encountered: