Skip to content

Commit

Permalink
Merge pull request #3033 from creative-commoners/pulls/6/valid
Browse files Browse the repository at this point in the history
API Rename validator classes
  • Loading branch information
GuySartorelli authored Dec 10, 2024
2 parents 9b97b5f + 52812c2 commit 35942c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Forms/InternalLinkFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\TreeDropdownField;
use SilverStripe\Forms\RequiredFields;
use SilverStripe\Forms\Validation\RequiredFieldsValidator;

/**
* Provides a form factory for inserting internal page links in a HTML editor
Expand Down Expand Up @@ -56,7 +56,7 @@ protected function getFormFields($controller, $name, $context)
protected function getValidator($controller, $name, $context)
{
if ($context['RequireLinkText']) {
return RequiredFields::create('Text');
return RequiredFieldsValidator::create('Text');
}

return null;
Expand Down

0 comments on commit 35942c3

Please sign in to comment.