Explorar o código

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3958 a333f486-631f-4898-b8df-5754b55c2be0
glajarige %!s(int64=9) %!d(string=hai) anos
pai
achega
9f877d1307
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      js/field_set.js

+ 1 - 1
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)