Skip to content

Commit 1122258

Browse files
Fix in UDFValidator.validate args
The valuerejectedValue key was changed to an expression that only allows simple values.
1 parent 7da6337 commit 1122258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cbvalidation/models/validators/UDFValidator.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ component accessors="true" implements="cbvalidation.models.validators.IValidator
2828
return true;
2929
}
3030

31-
var args = {message="The '#arguments.field#' value does validate",field=arguments.field,validationType=getName(),validationData=arguments.validationData,rejectedValue=arguments.targetValue};
31+
var args = {message="The '#arguments.field#' value does not validate",field=arguments.field,validationType=getName(),rejectedValue=( isSimpleValue( arguments.targetValue ) ? arguments.targetValue : '' ),validationData=arguments.validationData};
3232
validationResult.addError( validationResult.newError(argumentCollection=args) );
3333
return false;
3434
}

0 commit comments

Comments
 (0)