fixed equalsField validation rule.

This commit is contained in:
Gabriel Neutzling 2015-04-14 00:36:17 -03:00
parent 617cc21ee5
commit a0bab16ca3
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;