8000 Errors in form collections. · Issue #8297 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Errors in form collections. #8297

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

Closed
pawellen opened this issue Jun 17, 2013 · 5 comments
Closed

Errors in form collections. #8297

pawellen opened this issue Jun 17, 2013 · 5 comments
Labels

Comments

@pawellen
Copy link
  1. First bug found when displaying errors in collection. When numeration of (name) does not start from zero validation errors are displayed in bad collection memebers. For example:
    a) I add 3 new collection members
    b) I remove first member
    c) I submit a form (got validation errors)
    d) I add 1 new member
    e) I submit form again
    f) Validation errors are displayed in bad members, Last member does not have validation errors. First elemet has errors no matter if it is valid or not.
  2. There is a bug in algorithm in documentation (http://symfony.com/doc/current/cookbook/form/form_collections.html), when you remove some elements from the middle of collection, and then submit form, after page is reloaded you will get bad (name) numeration when add new tags i.e. input names will have same name value.
@maciekzieba
Copy link

I have the same issue with displaying errors.

@jozek
Copy link
jozek commented Jun 17, 2013

Yep, happened to me as well.

@pawellen
Copy link
Author
pawellen commented Aug 2, 2013

What about that?

@jakzal
Copy link
Contributor
jakzal commented Dec 21, 2013

re #4492 #7468

@webmozart
Copy link
Contributor

Closing as duplicate of #7468.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants
0