Merge pull request #86 from TallerWebSolutions/fix-equalsfield

Fixed equalsField validation rule.
This commit is contained in:
Christian Alfoni 2015-04-14 08:05:22 +02:00
commit 1e9ff5e527
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ module.exports = {
return value == eql;
},
equalsField: function (values, value, field) {
return value == this[field];
return value == values[field];
},
maxLength: function (values, value, length) {
return value !== undefined && value.length <= length;