This commit is contained in:
Tony Air 2018-07-06 07:46:31 +07:00 committed by GitHub
parent 33d64b648e
commit c47a344e08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']),