mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix syntax error in code example
This commit is contained in:
parent
6bb6c8cde5
commit
6c24d7dcef
@ -102,7 +102,7 @@ the same validation logic applied to it throughout.
|
||||
}
|
||||
else if($this->value > 5 || $this->value < 2) {
|
||||
$validator->validationError(
|
||||
$this->name, "Your number must be between 2 and 5, "validation", false
|
||||
$this->name, "Your number must be between 2 and 5", "validation", false
|
||||
);
|
||||
|
||||
return false;
|
||||
@ -232,4 +232,4 @@ Again, custom error messages can be provided through the `FormField`
|
||||
## API Documentation
|
||||
|
||||
* [api:RequiredFields]
|
||||
* [api:Validator]
|
||||
* [api:Validator]
|
||||
|
Loading…
Reference in New Issue
Block a user