Skip to content

Commit

Permalink
ENH Do not pass in redundant validator
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 11, 2024
1 parent 743a10f commit 1563dbf
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 1563dbf

Please sign in to comment.