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

[bug fix] errorMessages() messages doesn't contain parameters #51

Merged
merged 3 commits into from
Feb 11, 2019
Merged

[bug fix] errorMessages() messages doesn't contain parameters #51

merged 3 commits into from
Feb 11, 2019

Conversation

oniice
Copy link
Contributor

@oniice oniice commented Feb 11, 2019

When just using the validator.getErrorMessages() method, it only uses the message with the field replaced. So you get a message like The name must be at least :min:type.

This was happening as they where being stored before the params where being replaced, as that was only firing if the showMessages() had been fired.

This patch fixes that, so you can just pull the fully formatted error messages out, without firing showMessages().

previously all param replacements would only be applied if showMessages() had been fired and they where not stored in the errorMessages property
package.json Show resolved Hide resolved
@stuyam stuyam self-assigned this Feb 11, 2019
@stuyam stuyam merged commit 3eb2836 into dockwa:master Feb 11, 2019
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