Skip to content

Fix Validation.Error() not modifying Validation.Errors #194

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

Merged
merged 1 commit into from
Jun 26, 2013
Merged

Fix Validation.Error() not modifying Validation.Errors #194

merged 1 commit into from
Jun 26, 2013

Conversation

plroman
Copy link
Contributor

@plroman plroman commented Jun 26, 2013

Validation.Error() currently doesn't add an error to the Validation.Errors slice, which means that Validation.HasErrors() will not detect the error.

This simple portion of code fixes it.

Related post: https://groups.google.com/forum/?fromgroups#!topic/revel-framework/hw1wfFt4Ys0

@robfig
Copy link
Contributor

robfig commented Jun 26, 2013

Thank you !

robfig added a commit that referenced this pull request Jun 26, 2013
Fix Validation.Error() not modifying Validation.Errors
@robfig robfig merged commit cc98cdb into revel:master Jun 26, 2013
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

Successfully merging this pull request may close these issues.

2 participants