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

Hotfix for #102 BC break validationGroup ignored for collections #106

Conversation

svycka
Copy link
Contributor

@svycka svycka commented Jul 8, 2016

This looks like a hack but don't know how we could fix it without BC.

@svycka svycka changed the title Hotfix/issue #102 BC break validationGroup ignored for collections Hotfix for #102 BC break validationGroup ignored for collections Jul 8, 2016
@svycka
Copy link
Contributor Author

svycka commented Jul 8, 2016

@weierophinney is this BC break? maybe I didn't cover everything? you can close this if you think this is not a good fix :D or suggest how to fix it.

@davidwindell
Copy link
Contributor

👍

@weierophinney weierophinney added this to the 2.9.1 milestone Sep 14, 2016
@weierophinney weierophinney self-assigned this Sep 14, 2016
@weierophinney weierophinney merged commit 8991ddb into zendframework:master Sep 14, 2016
weierophinney added a commit that referenced this pull request Sep 14, 2016
…-of-collections-fix

Hotfix for #102 BC break validationGroup ignored for collections
weierophinney added a commit that referenced this pull request Sep 14, 2016
weierophinney added a commit that referenced this pull request Sep 14, 2016
weierophinney added a commit that referenced this pull request Sep 14, 2016
weierophinney added a commit that referenced this pull request Sep 14, 2016
@svycka svycka deleted the hotfix/issue-102-BC-break-because-of-collections-fix branch September 15, 2016 05:20
Copy link

@rwrz rwrz left a comment

Choose a reason for hiding this comment

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

  •        if ($validationGroup && (array_key_exists($name, $validationGroup) || !in_array($name, $validationGroup))) {
    

This piece of CODE is wrong! Should be

if ($validationGroup && (!array_key_exists($name, $validationGroup) && !in_array($name, $validationGroup))) {

Please, fix it!

@davidwindell
Copy link
Contributor

@rwrz can you raise a PR with a test case and the fix?

rwrz pushed a commit to rwrz/zend-form that referenced this pull request Sep 21, 2016
weierophinney added a commit that referenced this pull request Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants