Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion box.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"ColdBox Validation",
"author":"Ortus Solutions <info@ortussolutions.com>",
"version":"4.3.0",
"version":"4.3.1",
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbvalidation/@build.version@/cbvalidation-@build.version@.zip",
"slug":"cbvalidation",
"type":"modules",
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Only perform type evaluation if target value is not null or empty string #75

## [4.3.0] - 2023-05-05

## [4.2.0] - 2023-04-14
Expand Down
2 changes: 1 addition & 1 deletion models/validators/TypeValidator.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ component extends="BaseValidator" accessors="true" singleton {
}

// return true if no data to check, type needs a data element to be checked.
if ( isNull( arguments.targetValue ) ) {
if ( isNull( arguments.targetValue ) || isNullOrEmpty( arguments.targetValue ) ) {
return true;
}

Expand Down