Skip to content

Commit

Permalink
Merge pull request #1358 from creative-commoners/pulls/7.0/remove-fie…
Browse files Browse the repository at this point in the history
…ldsvalidator

ENH Do not call form field validate in validator
  • Loading branch information
GuySartorelli authored Dec 12, 2024
2 parents c5df3e2 + 2f250c7 commit c076336
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions code/Form/UserFormsRequiredFieldsValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c076336

Please sign in to comment.