Nested model validation #439

Closed
safm opened this Issue Feb 5, 2014 · 1 comment

Projects

None yet

2 participants

safm commented Feb 5, 2014

Even when nested model's validation fails primary model's attributes are getting updated.

http://jsfiddle.net/sarfaraz/gnLmm/

@bpatram bpatram added the bug label Mar 22, 2016
Collaborator
bpatram commented Mar 27, 2016

I understand this issue was opened 2 years ago but, based on your test case, your validation rules never caused any validation checks to fail.
I have updated your test case here since the one you link to is broken: http://jsfiddle.net/jt6jLqh5/1/
When I write a validation rule that would cause it to fail the test still passes and the attribute is not set: http://jsfiddle.net/jt6jLqh5/2/

@bpatram bpatram closed this Mar 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment