Skip to content

Commit

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

ENH Do not pass in redundant validator
  • Loading branch information
GuySartorelli authored Dec 12, 2024
2 parents 743a10f + 1563dbf commit 5bf6aa0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/Forms/RemoteFileFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public function getForm(?RequestHandler $controller = null, $name = RemoteFileFo
$fields = $this->getFormFields($controller, $name, $context);
$actions = $this->getFormActions($controller, $name, $context);

$validator = new RequiredFieldsValidator();
$form = Form::create($controller, $name, $fields, $actions, $validator);
$form = Form::create($controller, $name, $fields, $actions);
$form->addExtraClass('form--fill-height');
$form->addExtraClass('form--no-dividers');
$form->addExtraClass('insert-embed-modal--'. strtolower($context['type'] ?? ''));
Expand Down

0 comments on commit 5bf6aa0

Please sign in to comment.