瀏覽代碼

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


git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2800 a333f486-631f-4898-b8df-5754b55c2be0

dflaven 12 年之前
父節點
當前提交
a3303ed6ca
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/property_field.js

+ 1 - 1
js/property_field.js

@@ -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)
 			{