瀏覽代碼

Portal : Bug when adding item on the first LinkedSet of an edition form

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4436 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 年之前
父節點
當前提交
5b5d32db0e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      sources/renderer/bootstrap/fieldrenderer/bslinkedsetfieldrenderer.class.inc.php

+ 3 - 3
sources/renderer/bootstrap/fieldrenderer/bslinkedsetfieldrenderer.class.inc.php

@@ -335,7 +335,7 @@ EOF
 
 								$('#{$this->oField->GetGlobalId()}').val(JSON.stringify(aObjectIds));
 								// Updating items count
-								updateItemCount();
+								updateItemCount_{$this->oField->GetGlobalId()}();
 								// Updating global checkbox
 								$('#{$this->oField->GetGlobalId()}_check_all').prop('checked', false);
 							})
@@ -358,7 +358,7 @@ EOF
 
 							$('#{$this->oField->GetGlobalId()}').val(JSON.stringify(aObjectIds));
 							// Updating items count
-							updateItemCount();
+							updateItemCount_{$this->oField->GetGlobalId()}();
 							// Updating global checkbox
 							$('#{$this->oField->GetGlobalId()}_check_all').prop('checked', false);
 						}
@@ -404,7 +404,7 @@ EOF
 						$('#{$sButtonRemoveId}').prop('disabled', bIsDisabled);
 					};
 					// - Item count state handler
-					var updateItemCount = function()
+					var updateItemCount_{$this->oField->GetGlobalId()} = function()
 					{
 						$('#{$sCollapseTogglerId} > .text').text( oTable_{$this->oField->GetGlobalId()}.rows().count() );
 					};