Thanks to visit codestin.com
Credit goes to github.com

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

Fix for missing required option for CollectionInputFilter#5926

Closed
fabiocarneiro wants to merge 2 commits into
zendframework:masterfrom
fabiocarneiro:hotfix-factory-collection-input-filter-required
Closed

Fix for missing required option for CollectionInputFilter#5926
fabiocarneiro wants to merge 2 commits into
zendframework:masterfrom
fabiocarneiro:hotfix-factory-collection-input-filter-required

Conversation

@fabiocarneiro
Copy link
Copy Markdown
Contributor

Since the CollectionInputFilter class has a $isRequired option defaulted to false, we need to have a required index in the factory array, so we can force validation on that element. Otherwise, it will always ignore the collection and return valid.

@danizord
Copy link
Copy Markdown
Contributor

danizord commented Mar 6, 2014

👍

@weierophinney weierophinney added this to the 2.3.0 milestone Mar 7, 2014
@weierophinney weierophinney self-assigned this Mar 7, 2014
weierophinney added a commit that referenced this pull request Mar 7, 2014
…-input-filter-required

Fix for missing required option for CollectionInputFilter
weierophinney added a commit that referenced this pull request Mar 7, 2014
- Align operators
- Comma after last array element
weierophinney added a commit that referenced this pull request Mar 7, 2014
@weierophinney
Copy link
Copy Markdown
Member

Merged to develop for release with 2.3.0.

weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
…o/hotfix-factory-collection-input-filter-required

Fix for missing required option for CollectionInputFilter
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
- Align operators
- Comma after last array element
weierophinney added a commit to zendframework/zend-inputfilter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants