Bläddra i källkod

Dashboard: fixed a bug in subforms having the same fields (the last one was submitted even if hidden)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2020 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 år sedan
förälder
incheckning
9befaf9210
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      js/property_field.js

+ 2 - 2
js/property_field.js

@@ -214,7 +214,7 @@ function ValidateForm(sFormId, bValidateAll)
 function ReadFormParams(sFormId)
 {
 	var oMap = { };
-	$('#'+sFormId+' :input').each( function() {
+	$('#'+sFormId+' :input:visible').each( function() {
 		var sName = $(this).attr('name');
 		if (sName && sName != '')
 		{
@@ -239,7 +239,7 @@ function SubmitForm(sFormId, onSubmitResult)
 	{
 		var oMap = ReadFormParams(sFormId);
 		oMap.module_name = sCurrentModule;
-		$('#'+sFormId+' :input').each( function() {
+		$('#'+sFormId+' :input:visible').each( function() {
 			var sName = $(this).attr('name');
 			if (sName && sName != '')
 			{