Skip to content
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

[KunstmaanAdminBundle]: fix nested forms #1574

Merged
merged 1 commit into from
Dec 15, 2017
Merged

[KunstmaanAdminBundle]: fix nested forms #1574

merged 1 commit into from
Dec 15, 2017

Conversation

sandergo90
Copy link
Contributor

@sandergo90 sandergo90 commented Aug 9, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets

When having a collection form type inside another collection type with the "Add new" button it will not work because the replace of the prototype for the nested collection is already done in the replace of the parent prototype so you will get a javascript error.

Solution is to only change the parts of the current collection.

If someone has a better solution for this, or a nicer way, please say so ;)

@Devolicious is it also a BC-break by introducing the data-prototype-name here ?

@sandergo90 sandergo90 changed the title [KunstmaanAdminBundle]: fix nested forms WIP: [KunstmaanAdminBundle]: fix nested forms Aug 9, 2017
[KunstmaanAdminBundle]: Change nested forms prototypes

Remove duplicate content
@sandergo90 sandergo90 changed the title WIP: [KunstmaanAdminBundle]: fix nested forms [KunstmaanAdminBundle]: fix nested forms Nov 6, 2017
@sandergo90 sandergo90 requested a review from Numkil November 6, 2017 13:04
Copy link

@Numkil Numkil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested fully, functionality works as proposed.

@sandergo90 sandergo90 added this to the 4.0.3 milestone Dec 15, 2017
@sandergo90 sandergo90 merged commit 3c55e66 into Kunstmaan:4.0 Dec 15, 2017
@sandergo90 sandergo90 deleted the fix/nested-forms branch December 15, 2017 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants