Skip to content

Commit

Permalink
ENH Do not call form field validate in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 11, 2024
1 parent c5df3e2 commit 2f250c7
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 2f250c7

Please sign in to comment.