Skip to content

Commit

Permalink
Merge pull request #43 from lgomezma/master
Browse files Browse the repository at this point in the history
Fix present validation check
  • Loading branch information
mde committed Mar 23, 2013
2 parents 8db4514 + f24e509 commit 199f82b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validators.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var utils = require('utilities')
var validators = { var validators = {
present: function (name, val, params, rule, locale) { present: function (name, val, params, rule, locale) {
var msg; var msg;
if (!val) { if (typeof val === "undefined" || val=="") {
//'Field "' + name + '" is required.'; //'Field "' + name + '" is required.';
msg = rule.message || i18n.getText('model.validatesPresent', msg = rule.message || i18n.getText('model.validatesPresent',
{name: name}, locale); {name: name}, locale);
Expand Down

0 comments on commit 199f82b

Please sign in to comment.