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 isn't showing #35

Closed
tomasvanrijsse opened this issue Feb 13, 2019 · 3 comments
Closed

Validation isn't showing #35

tomasvanrijsse opened this issue Feb 13, 2019 · 3 comments

Comments

@tomasvanrijsse
Copy link

When a the form has invalid data I see in the console that errors have been returned.
Errors on the regular fields are shown but the errors on the NestedForms aren't shown.

I'm running Nova v1.3.2 and Nova Nested Form v2.0.2

@yassilah
Copy link
Owner

Can you show me what kind of errors are not displayed?

@tomasvanrijsse
Copy link
Author

These aren't displayed:

{"messages":"The given data was invalid.","errors":{"debtor[last_name]":["The last name field is required."],"debtor[bsn]":["The bsn format is invalid."]}}

But on the same page, these are:

{"messages":"The given data was invalid.","errors":{"incomes[0][amount]":["The amount field is required."],"incomes[0][income_type]":["The income type field is required."]}}

Do you need more/other info?

@yassilah
Copy link
Owner

Alright, I found the error, it was due to an incorrect error handling for hasOne relationships!
You can update the package to 2.0.3 and it should work as expected.

Thanks for the contribution :)

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

No branches or pull requests

2 participants