瀏覽代碼

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 9 年之前
父節點
當前提交
9f877d1307
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)