Browse Source

Merge pull request #120 from whalepath/master

handle case where a field is removed after the bootstrap validation
Phuoc Nguyen 12 years ago
parent
commit
02a06a06d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/js/bootstrapValidator.js

+ 1 - 1
src/js/bootstrapValidator.js

@@ -377,7 +377,7 @@
         isValid: function() {
             var field, validatorName;
             for (field in this.results) {
-                if (!this.options.fields[field]['enabled']) {
+                if (this.options.fields[field] == null || !this.options.fields[field]['enabled']) {
                     continue;
                 }