Skip to content

Commit 4341c99

Browse files
authored
Merge pull request #42 from wpdebruin/development
fix for BOX-63 and BOX-68
2 parents 2593258 + 09e6a8e commit 4341c99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/result/ValidationResult.cfc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ component accessors="true" {
162162
arguments.message = replacenocase( arguments.message, "{property}", arguments.error.getField(), "all");
163163
// The validation type
164164
arguments.message = replacenocase( arguments.message, "{validationType}", arguments.error.getValidationType(), "all");
165-
// The validation data
166-
if( arguments.error.getValidationType() neq 'UDF' ){
165+
// The validation data, should be skipped if validationData is a struct
166+
if( !listfindnocase( "UDF,RequiredUnless,RequiredIf,Unique", arguments.error.getValidationType() )){
167167
arguments.message = replacenocase( arguments.message, "{validationData}", arguments.error.getValidationData(), "all");
168168
}
169169
// The target name of the object
@@ -291,4 +291,4 @@ component accessors="true" {
291291
return this;
292292
}
293293

294-
}
294+
}

0 commit comments

Comments
 (0)