diff --git a/src/EditableSpamProtectionField.php b/src/EditableSpamProtectionField.php index eb91273..8f13aec 100644 --- a/src/EditableSpamProtectionField.php +++ b/src/EditableSpamProtectionField.php @@ -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