From bc7176f07e902f1603a82dc2a8c4ae429db738c4 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Fri, 18 Mar 2016 14:14:06 +0000 Subject: [PATCH] Form : Fixed call to form_field::validate on fields with no form_field widget (typically LabelField) SVN:trunk[3958] --- js/field_set.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/field_set.js b/js/field_set.js index f189e11fe..8e5f6f658 100644 --- a/js/field_set.js +++ b/js/field_set.js @@ -223,7 +223,7 @@ $(function() { var oField = this.getField(aFieldsToValidate[i]); // Checking if the field still exists as it could have been from a dynamic subform (Typically with custom fields) - if(oField.length > 0) + if(oField.length > 0 && oField.hasClass('form_field')) { var oRes = oField.triggerHandler('validate', oData); if (!oRes.is_valid)