From 6df1c01e19909ec20477d19ff7accf5027667ed9 Mon Sep 17 00:00:00 2001 From: Norbert Csaba Herczeg Date: Wed, 16 Aug 2017 19:19:01 +0200 Subject: [PATCH] fix reference error The "parentForm" variable is not initialized therefore leads to: ``` ReferenceError: parentForm is not defined ``` --- src/validation-common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation-common.js b/src/validation-common.js index 8b83b95..d17fd6c 100644 --- a/src/validation-common.js +++ b/src/validation-common.js @@ -816,7 +816,7 @@ angular var formName = (!!formObj) ? formObj.getAttribute("name") : null; if (!!formObj && !!formName) { - parentForm = (!!_globalOptions && !!_globalOptions.controllerAs && formName.indexOf('.') >= 0) + var parentForm = (!!_globalOptions && !!_globalOptions.controllerAs && formName.indexOf('.') >= 0) ? objectFindById(self.scope, formName, '.') : self.scope[formName];