Skip to content

Commit

Permalink
API Use updated validation API
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 7, 2024
1 parent 16a447e commit 886b27a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EditableSpamProtectionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ public function validateField($data, $form)
$formField->setValue($data[$this->Name]);
}

$validator = $form->getValidator();
if (!$formField->validate($validator)) {
$errors = $validator->getErrors();
$result = $formField->validate();
if (!$result->isValid()) {
$errors = $result->getMessages();
$foundError = false;

// field validate implementation may not add error to validator
Expand Down

0 comments on commit 886b27a

Please sign in to comment.