From 6ffd268d6641f1f802aa1604c820633fb8a2b687 Mon Sep 17 00:00:00 2001 From: tools4origins Date: Tue, 12 Aug 2014 11:16:43 +0200 Subject: [PATCH 1/2] Correct typo I guess this is just a little typo --- Resources/public/js/fp_js_validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/public/js/fp_js_validator.js b/Resources/public/js/fp_js_validator.js index 0c2f924..016c552 100755 --- a/Resources/public/js/fp_js_validator.js +++ b/Resources/public/js/fp_js_validator.js @@ -227,7 +227,7 @@ function FpJsCustomizeMethods() { ? 'validateRecursively' : 'validate'; - var validateUnique = (!opts || false !== opts['findUniqueContsraint']); + var validateUnique = (!opts || false !== opts['findUniqueConstraint']); if (validateUnique && item.jsFormValidator.parent) { var data = item.jsFormValidator.parent.data; if (data['entity'] && data['entity']['constraints']) { From ce2d6d7b74cf4f337fb151bea28be50fe1a00b03 Mon Sep 17 00:00:00 2001 From: tools4origins Date: Tue, 12 Aug 2014 11:18:20 +0200 Subject: [PATCH 2/2] Correct typo I guess this is just a little typo --- Resources/public/js/FpJsFormValidator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/public/js/FpJsFormValidator.js b/Resources/public/js/FpJsFormValidator.js index 2a89568..cbf6f9b 100644 --- a/Resources/public/js/FpJsFormValidator.js +++ b/Resources/public/js/FpJsFormValidator.js @@ -227,7 +227,7 @@ function FpJsCustomizeMethods() { ? 'validateRecursively' : 'validate'; - var validateUnique = (!opts || false !== opts['findUniqueContsraint']); + var validateUnique = (!opts || false !== opts['findUniqueConstraint']); if (validateUnique && item.jsFormValidator.parent) { var data = item.jsFormValidator.parent.data; if (data['entity'] && data['entity']['constraints']) { @@ -998,4 +998,4 @@ var FpJsFormValidator = new function () { return length; }; -}(); \ No newline at end of file +}();