Empty form data causes validationGroup error for Collections #2541

Closed
zfbot opened this Issue Sep 28, 2012 · 1 comment

Comments

Projects
None yet
2 participants

zfbot commented Sep 28, 2012

Jira Information

Original Issue:ZF2-497
Issue Type:Bug
Reporter:outeredge
Created:08/23/12
Assignee:outeredge
Components:Zend\Form

Description

When sending an empty array of data to a form that has Collections with multiple elements within (and that are validated with a validation groups), you will receive an error;

[code]setValidationGroup() expects a list of valid input names; "source" was not found[/code]

With [code]source[/code] being any of the fields in the collection besides the first one.

zfbot commented Sep 28, 2012

This issue was ported from the ZF2 Jira Issue Tracker at
http://framework.zend.com/issues/browse/ZF2-497

Known GitHub users mentioned in the original message or comment:
@outeredge

@ghost ghost assigned weierophinney Sep 28, 2012

davidwindell added a commit to davidwindell/zf2 that referenced this issue Nov 15, 2012

davidwindell added a commit to davidwindell/zf2 that referenced this issue Nov 19, 2012

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