mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS: Update typos
This commit is contained in:
parent
e968f5cb86
commit
5585f6633f
@ -217,7 +217,7 @@ class FormRequestHandler extends RequestHandler
|
|||||||
|
|
||||||
// Action handlers may throw ValidationExceptions.
|
// Action handlers may throw ValidationExceptions.
|
||||||
try {
|
try {
|
||||||
// Or we can use the Valiator attached to the form
|
// Or we can use the Validator attached to the form
|
||||||
$result = $this->form->validationResult();
|
$result = $this->form->validationResult();
|
||||||
if (!$result->isValid()) {
|
if (!$result->isValid()) {
|
||||||
return $this->getValidationErrorResponse($result);
|
return $this->getValidationErrorResponse($result);
|
||||||
@ -247,7 +247,7 @@ class FormRequestHandler extends RequestHandler
|
|||||||
return $this->invokeFormHandler($field, ...$args);
|
return $this->invokeFormHandler($field, ...$args);
|
||||||
}
|
}
|
||||||
} catch (ValidationException $e) {
|
} catch (ValidationException $e) {
|
||||||
// The ValdiationResult contains all the relevant metadata
|
// The ValidationResult contains all the relevant metadata
|
||||||
$result = $e->getResult();
|
$result = $e->getResult();
|
||||||
$this->form->loadMessagesFrom($result);
|
$this->form->loadMessagesFrom($result);
|
||||||
return $this->getValidationErrorResponse($result);
|
return $this->getValidationErrorResponse($result);
|
||||||
|
Loading…
Reference in New Issue
Block a user