From 2f250c7a11689d54896532573f3cf433f060a5f4 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 11 Dec 2024 15:32:08 +1300 Subject: [PATCH] ENH Do not call form field validate in validator --- code/Form/UserFormsRequiredFieldsValidator.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/code/Form/UserFormsRequiredFieldsValidator.php b/code/Form/UserFormsRequiredFieldsValidator.php index d19307dd..9db401b8 100644 --- a/code/Form/UserFormsRequiredFieldsValidator.php +++ b/code/Form/UserFormsRequiredFieldsValidator.php @@ -35,12 +35,6 @@ public function php($data) $valid = true; $fields = $this->form->Fields(); - foreach ($fields as $field) { - $result = $field->validate(); - $valid = $result->isValid() && $valid; - $this->result->combineAnd($result); - } - if (empty($this->required)) { return $valid; }