Browse Source

Fix #2412, using form without validation rules causes errors

pull/2416/head
jlukic 9 years ago
parent
commit
80cc83459d
1 changed files with 3 additions and 0 deletions
  1. 3
      src/definitions/behaviors/form.js

3
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;

Loading…
Cancel
Save