From 80bac5275c580c205cfaaabfb158de55f75d0195 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 16 Jul 2013 09:16:54 +0000 Subject: [PATCH] Forms enhancements: - The current value of a field is automatically excluded from the forbidden values SVN:trunk[2800] --- js/property_field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/property_field.js b/js/property_field.js index 0915504dc..86f7ee943 100644 --- a/js/property_field.js +++ b/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) {