Skip to content

Fix count input on form collection #13452

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

Merged
merged 1 commit into from
Mar 31, 2020
Merged

Fix count input on form collection #13452

merged 1 commit into from
Mar 31, 2020

Conversation

matthieumota
Copy link
Contributor

On documentation, :input is used to find all input on collection and guess how many items collection contains. But :input select the button to add item on collection. So it add an item by error.

It cause error for instance with error mapping (Because it generate 1, 2, 3 instead of 0, 1, 2). We know it is our responsibility to check that as dev but it can help new developer to better apprehend Collection Type.

Copy link
Member

@yceruto yceruto left a comment

Choose a reason for hiding this comment

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

Good catch!

@javiereguiluz javiereguiluz added this to the 3.4 milestone Mar 31, 2020
@javiereguiluz javiereguiluz changed the base branch from master to 3.4 March 31, 2020 13:40
@javiereguiluz
Copy link
Member

Thank you Matthieu.

@javiereguiluz javiereguiluz merged commit 90c111a into symfony:3.4 Mar 31, 2020
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.

4 participants