Form : Fixed call to form_field::validate on fields with no form_field widget (typically LabelField)

SVN:trunk[3958]
This commit is contained in:
Guillaume Lajarige
2016-03-18 14:14:06 +00:00
parent 8f4a8fc7be
commit bc7176f07e

View File

@@ -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)