From 2076efe173a1eb63fc455bb17a58ce02183902d6 Mon Sep 17 00:00:00 2001 From: Shea Date: Thu, 30 Jul 2015 11:35:00 +1200 Subject: [PATCH] fix #24 for all ss versions --- code/dataobjects/Link.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/dataobjects/Link.php b/code/dataobjects/Link.php index c3885d1..e04945a 100644 --- a/code/dataobjects/Link.php +++ b/code/dataobjects/Link.php @@ -62,7 +62,9 @@ public function getCMSFields(){ } $fields->removeByName('SiteTreeID'); - $fields->removeByName('FileID'); + // seem to need to remove both of these for different SS versions... + $fields->removeByName('FileID'); + $fields->removeByName('File'); $fields->dataFieldByName('Title')->setTitle(_t('Linkable.TITLE', 'Title'))->setRightTitle(_t('Linkable.OPTIONALTITLE', 'Optional. Will be auto-generated from link if left blank')); $fields->replaceField('Type', DropdownField::create('Type', _t('Linkable.LINKTYPE', 'Link Type'), $i18nTypes)->setEmptyString(' '), 'OpenInNewWindow');