From ca90f9b32a0391e5a77b64cb7c1c79706f7b71ee Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 18 Nov 2014 17:25:08 +0000 Subject: [PATCH] Oops, typo in "Prevent the JS validation (on focus) to create multiple entries for the same field, since it breaks the validation." SVN:trunk[3422] --- 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 61c3e3c2b..18c791c32 100644 --- a/js/property_field.js +++ b/js/property_field.js @@ -267,7 +267,7 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden { $('#v_'+sFieldId).addClass('ui-state-error'); iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]); - if (iFieldPos == -1) + if (iFieldIdPos == -1) { oFormValidation[sFormId].push(sFieldId); }