mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
Bug fix: validation was broken when the first fields were not Ok.
SVN:trunk[2806]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user