Forms enhancements:

- The current value of a field is automatically excluded from the forbidden values


SVN:trunk[2800]
This commit is contained in:
Denis Flaven
2013-07-16 09:16:54 +00:00
parent 59fc9e24d9
commit 80bac5275c

View File

@@ -230,7 +230,7 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
}
if (aForbiddenValues)
{
for(var i = 0; i < aForbiddenValues.length; i++)
for(var i in aForbiddenValues)
{
if (aForbiddenValues[i] == currentVal)
{