Skip to content

Commit b85267c

Browse files
authored
Update MaxValidator.cfc
The Max validator needs to better reflect that it can be less than or equal to the number to compare to <=
1 parent 704a2bc commit b85267c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cbvalidation/models/validators/MaxValidator.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ component accessors="true" implements="cbvalidation.models.validators.IValidator
2929
return true;
3030
}
3131

32-
var args = {message="The '#arguments.field#' value is not less than #arguments.validationData#",field=arguments.field,validationType=getName(),validationData=arguments.validationData};
32+
var args = {message="The '#arguments.field#' value is not less than or equal to #arguments.validationData#",field=arguments.field,validationType=getName(),validationData=arguments.validationData};
3333
var error = validationResult.newError(argumentCollection=args).setErrorMetadata({max=arguments.validationData});
3434
validationResult.addError( error );
3535
return false;
@@ -42,4 +42,4 @@ component accessors="true" implements="cbvalidation.models.validators.IValidator
4242
return name;
4343
}
4444

45-
}
45+
}

0 commit comments

Comments
 (0)