Closed lukepass closed 4 years ago
Do you have any stack trace or javascript debug info we can use to fix the problem?
Confirmed. It works for 'inline' => 'natural'
but not for 'inline' => 'table'
PR created
The fix introduce an another bug. I have to revert it in #5068.
I reopen this issue.
Hey. Still relevant. When about to wait, do not tell me? Not to miss and update your code)
I also hit this issue now. ChoiceFieldMaskType
does not seem to work when used inside a 'inline' => 'table'
parent admin.
It seems that the element IDs that the ChoiceFieldMaskType
wants to hide do not match the ones generated in 'table' mode.
Hello, any news on this issue? Can I help somehow? Unfortunately it's still relevant.
Thanks.
Hello,
Any news ? I have the same problem with an 'inline' => 'table'
parent admin.
Thanks
This bug happens in non collection items too if you have more than 1 property (that uses ModelType or ModelListType in the admin) referencing another entity with a ChoiceFieldMaskType. The first time you open the Add modal for a property in the admin page, the Add modal shows the correct properties and the ChoiceFieldMaskType works fine, but if you open another Add modal for a different property in the same admin page the ChoiceFieldMaskType does not work anymore.
To reproduce: Create an entity with 2 properties referencing another entity with a ChoiceFieldMaskType. The 2 properties use ModelType or ModelListType. In the admin page, click the Add button in both the properties. The first add modal will work fine, the second will show all the properties of the second entity.
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.
Yes, unfortunately the bug is still here.
An ugly workaround is still using "inline": "natural"
instead of "table"
.
Environment
CMS built using Symfony 2.8 and Sonata Admin.
Sonata packages
Symfony packages
PHP version
Subject
I have a parent entity which has a collection of
OneToMany
children. The relationship is working fine and I can add/remove elements using theCollectionType
. The problem is that the child entity has a field of typeChoiceFieldMaskType
which is working fine when I am editing a single child entity but it doesn't work propertly then used in the parent collection form.Parent entity:
Parent form:
Child form:
Thanks.