From 80cc83459d78941763f9c752b547c438641e2369 Mon Sep 17 00:00:00 2001 From: jlukic Date: Tue, 16 Jun 2015 15:23:42 -0400 Subject: [PATCH] Fix #2412, using form without validation rules causes errors --- src/definitions/behaviors/form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/definitions/behaviors/form.js b/src/definitions/behaviors/form.js index 5dba69740..e3c369b51 100644 --- a/src/definitions/behaviors/form.js +++ b/src/definitions/behaviors/form.js @@ -408,6 +408,9 @@ $.fn.form = function(parameters) { var rules ; + if(!validation) { + return false; + } $.each(validation, function(fieldName, field) { if( module.get.field(field.identifier)[0] == $field[0] ) { rules = field;