From c47a344e086bd6e783f90eba83fe8748bc24c5ba Mon Sep 17 00:00:00 2001 From: Tony Air Date: Fri, 6 Jul 2018 07:46:31 +0700 Subject: [PATCH] fix typo --- app/src/Extensions/SocialExtension.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/Extensions/SocialExtension.php b/app/src/Extensions/SocialExtension.php index c7d212b..2eb283b 100644 --- a/app/src/Extensions/SocialExtension.php +++ b/app/src/Extensions/SocialExtension.php @@ -14,7 +14,6 @@ use Sheadawson\Linkable\Models\Link; use SilverStripe\Forms\FieldList; use SilverStripe\Forms\TextField; use SilverStripe\ORM\DataExtension; -use SilverStripe\UserForms\Model\UserDefinedForm; class SocialExtension extends DataExtension { @@ -49,7 +48,7 @@ class SocialExtension extends DataExtension } $fields->findOrMakeTab('Root.Social'); -UserDefinedForm:: + $fields->addFieldsToTab('Root.Social', [ LinkField::create('PublicEmailID', 'Public Email') ->setAllowedTypes(['Email']), @@ -60,4 +59,4 @@ UserDefinedForm:: $fields->addFieldsToTab('Root.Social', $linkFields); } -} \ No newline at end of file +}