Skip to content

Commit

Permalink
ENH Use FieldValidator for FormFields
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 31, 2024
1 parent 445a97f commit 05c1c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Forms/UploadField.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public function performDisabledTransformation()
* @param Validator $validator
* @return bool
*/
public function validate($validator)
protected function validateField(Validator $validator, ValidationResult $result): bool
{
$maxFiles = $this->getAllowedMaxFileNumber();
$count = count($this->getItems() ?? []);
Expand Down

0 comments on commit 05c1c74

Please sign in to comment.