From cf8cf46e91418ff1ea2b194ec7ddb6d531e31470 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 30 Mar 2017 13:01:35 +0100 Subject: [PATCH] Unscoped variable --- system/core/ruleParser/MetadataRuleParser.cfc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/core/ruleParser/MetadataRuleParser.cfc b/system/core/ruleParser/MetadataRuleParser.cfc index d2d4c30..e915890 100644 --- a/system/core/ruleParser/MetadataRuleParser.cfc +++ b/system/core/ruleParser/MetadataRuleParser.cfc @@ -75,7 +75,7 @@ component accessors="true" extends="BaseRuleParser" implements="IRuleParser" { //if the property name given isn't found skip over it instead of erroring our if(!listFindNoCase(propertyNameList,propertyName)) continue; var propertyConstraints = ruleContainerConstraints[propertyName]; - for (propertyConstraintName in propertyConstraints){ + for (var propertyConstraintName in propertyConstraints){ //if the constraint name isn't recognized skip over it instead of erroring our if(isValidConstraintName(propertyConstraintName)){ var vr = new hyrule.system.core.rule.ValidationRule(); @@ -95,4 +95,4 @@ component accessors="true" extends="BaseRuleParser" implements="IRuleParser" { } } -} \ No newline at end of file +}