Skip to content

Form ERROR when use FormData with ARRAYS #31368

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
pittersnider opened this issue May 2, 2019 · 3 comments
Closed

Form ERROR when use FormData with ARRAYS #31368

pittersnider opened this issue May 2, 2019 · 3 comments

Comments

@pittersnider
Copy link

Symfony version(s) affected: 3.4.23

Description

When I submit an AJAX with an array (picture below), I got an error: “This value is not valid..”

How to reproduce

Use a formulary type like this one:
image

Use a controller like this one:
image

The code above specified in images are available here, respectively:

The sent data in FormData was:

image

@ro0NL
Copy link
Contributor

ro0NL commented May 3, 2019

Does the same error occur without the event listener? Can you check the profiler which field is causing it?

So far, im not sure it's a Symfony bug or a legit violation misunderstood on your side.

@xabbuh
Copy link
Member

xabbuh commented May 3, 2019

This looks like it could be the same as #29809. @pittersnider Can you confirm this?

@xabbuh
Copy link
Member

xabbuh commented May 13, 2019

I am going to close here for now due to the lack of feedback. Please let us know when you have more information and we can consider to reopen.

@xabbuh xabbuh closed this as completed May 13, 2019
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