Skip to content

Commit

Permalink
FIX Correctly validate emails in WYSIWYG links (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Mar 19, 2024
1 parent 70c4589 commit aadc8aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/Forms/EditorEmailLinkFormFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace SilverStripe\Admin\Forms;

use SilverStripe\Forms\EmailField;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\TextField;
use SilverStripe\Forms\RequiredFields;
Expand All @@ -11,7 +12,7 @@ class EditorEmailLinkFormFactory extends LinkFormFactory
protected function getFormFields($controller, $name, $context)
{
$fields = FieldList::create([
TextField::create(
EmailField::create(
'Link',
_t(__CLASS__.'.EMAIL', 'Email address')
),
Expand Down

0 comments on commit aadc8aa

Please sign in to comment.