Browse Source

Merge pull request #347 from causefx/develop

Develop
causefx 9 years ago
parent
commit
22fecd0ede
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions.php

+ 1 - 1
functions.php

@@ -1250,7 +1250,7 @@ function buildSettings($array) {
 					if (this.type == \'checkbox\') {
 						newVals[this.name] = this.checked;
 					} else {
-						if (this.value && !RegExp(\'^\'+this.pattern+\'$\').test(this.value)) { errorFields.push(this.name); }
+						if (this.value && this.pattern && !RegExp(\'^\'+this.pattern+\'$\').test(this.value)) { errorFields.push(this.name); }
 						var fieldVal = $(this).val();
 						if (typeof fieldVal == \'object\') {
 							if (typeof fieldVal.join == \'function\') {