mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Forms enhancements:
- The current value of a field is automatically excluded from the forbidden values SVN:trunk[2800]
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user