diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 3416b2b123..40fe09664c 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -13,6 +13,7 @@ - **Form** - Fixed issue with `minLength[1]` validation not behaving same as `minLength > 2` #2636. - **Form** - Form fields will now error when a non-string identifier is used - **Form** - Added `doesntContain` and `doesntContainExactly` # +- **Form** - Fixes errors when a field identifier is named `identifier` #2629 - **Formatting** - Fixed several source files that had `CR LF` (Windows) line endings #2649 **Additional Bugs** diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 970edc1bc2..2095bb661c 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -341,7 +341,7 @@ $.fn.form = function(parameters) { var keys = Object.keys(parameters), isLegacySettings = (keys.length > 0) - ? (parameters[keys[0]].identifier !== undefined) + ? (parameters[keys[0]].identifier !== undefined && parameters[keys[0]].rules !== undefined) : false ; if(isLegacySettings) {