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); }