git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3421 a333f486-631f-4898-b8df-5754b55c2be0
@@ -266,7 +266,11 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
if (!bValid)
{
$('#v_'+sFieldId).addClass('ui-state-error');
- oFormValidation[sFormId].push(sFieldId);
+ iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]);
+ if (iFieldPos == -1)
+ {
+ oFormValidation[sFormId].push(sFieldId);
+ }
if (sMessage)
$('#'+sFieldId).attr('title', sMessage).tooltip();