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

Symfony 3.2 Form field collection errors mapping #24268

Closed
mklimm opened this issue Sep 20, 2017 · 3 comments
Closed

Symfony 3.2 Form field collection errors mapping #24268

mklimm opened this issue Sep 20, 2017 · 3 comments

Comments

@mklimm
Copy link

mklimm commented Sep 20, 2017

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.13

I have implemented form field for collection with allow_delete = true, allow_add = true and by_reference = false options.

I added needed js code to delete elements and append forms for new objects of this collection from prototype.

This works as I expected, but when I submit a few subforms for this collection with indexes not in order (for example 0, 1, 3 instead of 0, 1, 2), then errors from subform with index 3 are assigned to index 2 (which not exists), but subforms are rendered with indexes 0, 1, 3 (same as before submit) after invalid form submit...

I'm sure that it worked correctly in Symfony (errors from subform with index 3 are assigned to subform with same index).

@mklimm
Copy link
Author

mklimm commented Sep 28, 2017

any progress?

@jakzal
Copy link
Contributor

jakzal commented Oct 4, 2017

This has manifested itself in various forms. Re #7468 #15526 #21595

@xabbuh
Copy link
Member

xabbuh commented Sep 23, 2018

This use case is currently not supported. I am closing here as it duplicates #7828.

@xabbuh xabbuh closed this as completed Sep 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants