Cannot validate form when keys of collection in data are non consecutive #3828

wants to merge 1 commit into


None yet
2 participants

netiul commented Feb 20, 2013

As the InputFilter tests the keys of the validationGroup to the keys of the data, the prepareValidationGroup should in case of a Collection use the keys of the corresponding data when multiplying that validationGroup to match the amount of Collection items in data.
Most of the time the keys of a collection inside data are consecutive, but not per se. The test attached to this PR shows this more clearly.

@ghost ghost assigned weierophinney Feb 20, 2013

weierophinney added a commit that referenced this pull request Feb 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment