Closed fancyweb closed 4 years ago
This issue is very old. Can you please check this against the latest master version?
Feel free to close if you don't use this bundle anymore or the issue is fixed.
I use sonata-project/admin-bundle 3.16.0. This bug has not been fixed yet.
Did anyone found any solution for this problem ?
@ketamina96, add this code to form theme:
{% block sonata_type_native_collection_errors %}
{% if form.rendered %}
{{ form_errors(form) }}
{% endif %}
{% endblock %}
@Nadrshin it doesn't work. It still shown twice.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Hello, i have same issue on SonataAdminBundle 4.31.0
Admin class :
If validation fails for the field "aliases", the error message will be shown twice.
The first time comes
sonata_type_native_collection_widget
(https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/views/Form/form_admin_fields.html.twig#L230), the second time fromform_row
(https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/views/Form/form_admin_fields.html.twig#L200).I think we have to delete the call to
form_errors
in thesonata_type_native_collection_widget
becausesonata_type_native_collection_widget
is called fromform_row
.