Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Form.Validator.test looks for 'ignoreValidation' in a field's class.

It was looking at the data-validators field, although ignoreField
adds 'ignoreValidation' to the field's class.
  • Loading branch information...
commit fe5c81a7832678edd960d4c1c5153957eb0a2b34 1 parent fc53a69
kiyoto authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Forms/Form.Validator.js
View
2  Source/Forms/Form.Validator.js
@@ -243,7 +243,7 @@ Form.Validator = new Class({
var validator = this.getValidator(className);
if (warn != null) warn = false;
if (this.hasValidator(field, 'warnOnly')) warn = true;
- var isValid = this.hasValidator(field, 'ignoreValidation') || (validator ? validator.test(field) : true);
+ var isValid = field.hasClass('ignoreValidation') || (validator ? validator.test(field) : true);
if (validator && field.isVisible()) this.fireEvent('elementValidate', [isValid, field, className, warn]);
if (warn) return true;
return isValid;
Please sign in to comment.
Something went wrong with that request. Please try again.