Bug fix: validation was broken when the first fields were not Ok.

SVN:trunk[2806]
This commit is contained in:
Denis Flaven
2013-07-24 17:00:30 +00:00
parent ce643d9086
commit 17658d1b6a

View File

@@ -265,7 +265,10 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
$('#'+sFieldId).removeAttr('title');
// Remove the element from the array
iFieldIdPos = oFormValidation[sFormId].indexOf(sFieldId);
oFormValidation[sFormId].splice(iFieldIdPos, 1);
if (iFieldIdPos > -1)
{
oFormValidation[sFormId].splice(iFieldIdPos, 1);
}
}
}