Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix validate non required fields in CollectionInputFilter #5814

Conversation

bramstroker
Copy link
Contributor

Validators set on non required inputs were never executed.
The problem is with the missing $data parameter for the validateInputs method. BaseInputFilter needs the data to figure out if validation needs to be run.
In the unit test field baz has a stringLength(1, 6) validator, but was still valid even if you pass a string longer than 6 characters.

@texdc
Copy link
Contributor

texdc commented Feb 11, 2014

👍

@weierophinney weierophinney added this to the 2.2.6 milestone Mar 3, 2014
@weierophinney weierophinney self-assigned this Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
Fix validate non required fields in CollectionInputFilter
weierophinney added a commit that referenced this pull request Mar 4, 2014
weierophinney added a commit that referenced this pull request Mar 4, 2014
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
…patch-collectioninputfilter

Fix validate non required fields in CollectionInputFilter
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants