sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

Help option is duplicate for ModelListType #7750

Closed eerison closed 2 years ago

eerison commented 2 years ago
Screenshot 2022-02-19 at 22 22 01

Help option is showing duplicate for ModelListType

                ->add('parent', ModelListType::class, [
                    'help' => 'Category parent help'
                ])

I tested with other type like ModelType and it works fine!

sonata 4.8.1 symfony 6.0 php 8.1

VincentLanglet commented 2 years ago

Can you play a little with the following code ? https://github.com/sonata-project/SonataAdminBundle/blob/21372857df0b6ca6103117f9b7a22b7b24967ede/src/Resources/views/Form/form_admin_fields.html.twig#L545-L645

Maybe you just have to remove the following line https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/Form/form_admin_fields.html.twig#L628