Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation 'required' doesn't work on relationController with hasMany #2558

Closed
jakobfdev opened this issue Dec 13, 2016 · 1 comment
Closed

Comments

@jakobfdev
Copy link
Contributor

Expected behavior

When Parent hasMany Child models, it should be possible to set children to be required and when using RelationController to create the parent and the children in one form.

Actual behavior

Upon creation of the parent, some children are created by the user with a deferred binding (I suppose) in the RelationController. When trying to save (children are present in the form), the validation fails and says that children are required.

Reproduce steps

https://github.com/jBOKA/oc-deferredbindingvalidationtest-plugin
Install plugin, try to create parent.

October build

382

PS: It is also not possible to have the inverse relation set to required, because then even creation of the children fails the validation.

@jakobfdev jakobfdev changed the title Valdation 'required' doesn't work on relationController with hasMany Validation 'required' doesn't work on relationController with hasMany Dec 13, 2016
@LukeTowers
Copy link
Contributor

Closing as it has been over a month since any activity on this occurred.

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

No branches or pull requests

3 participants