Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow override even for totally missing value

  • Loading branch information...
commit 0e6f8a32de9b698387890d23c4437383a5d29b88 1 parent c422bfb
mde authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/validators.js
View
2  lib/validators.js
@@ -95,7 +95,7 @@ var validators = {
// If a specific length is wanted, there has to be a value
// in the first place
if (!val) {
- return i18n.getText('model.validatesPresent', {name: name}, locale);
+ return rule.message || i18n.getText('model.validatesPresent', {name: name}, locale);
}
// Validate that there's a qualifier to check against
Please sign in to comment.
Something went wrong with that request. Please try again.