Browse Source

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 năm trước cách đây
mục cha
commit
a3303ed6ca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)
 			{