Skip to content

Commit e9b4f27

Browse files
authored
Merge pull request #27 from coldbox-modules/elpete-patch-1
Switch evaluate for invoke
2 parents 3b48b07 + 23eac9f commit e9b4f27

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/cbvalidation/models/ValidationManager.cfc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ component accessors="true" serialize="false" implements="IValidationManager" sin
172172
// had to use nasty evaluate until adobe cf get's their act together on invoke.
173173
getValidator( validatorType=key, validationData=arguments.rules[ key ] )
174174
.validate(
175-
validationResult = results,
176-
target = arguments.target,
177-
field = arguments.field,
178-
targetValue = evaluate( "arguments.target.get#arguments.field#()" ),
179-
validationData = arguments.rules[ key ]
175+
validationResult = results,
176+
target = arguments.target,
177+
field = arguments.field,
178+
targetValue = invoke( arguments.target, "get" & arguments.field ),
179+
validationData = arguments.rules[ key ]
180180
);
181181

182182
}
@@ -311,4 +311,4 @@ component accessors="true" serialize="false" implements="IValidationManager" sin
311311
return {};
312312
}
313313

314-
}
314+
}

0 commit comments

Comments
 (0)