Skip to content

Commit 78d2942

Browse files
authored
Merge pull request #76 from coldbox-modules/development
v4.3.1 Release
2 parents 71bb407 + 0a8dbe8 commit 78d2942

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name":"ColdBox Validation",
33
"author":"Ortus Solutions <[email protected]>",
4-
"version":"4.3.0",
4+
"version":"4.3.1",
55
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbvalidation/@build.version@/[email protected]@.zip",
66
"slug":"cbvalidation",
77
"type":"modules",

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Fixed
13+
14+
- Only perform type evaluation if target value is not null or empty string #75
15+
1216
## [4.3.0] - 2023-05-05
1317

1418
## [4.2.0] - 2023-04-14

models/validators/TypeValidator.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ component extends="BaseValidator" accessors="true" singleton {
4444
}
4545

4646
// return true if no data to check, type needs a data element to be checked.
47-
if ( isNull( arguments.targetValue ) ) {
47+
if ( isNull( arguments.targetValue ) || isNullOrEmpty( arguments.targetValue ) ) {
4848
return true;
4949
}
5050

0 commit comments

Comments
 (0)