Skip to content

Commit

Permalink
fix #24 for all ss versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sheadawson committed Jul 29, 2015
1 parent 0134d01 commit 2076efe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/dataobjects/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2076efe

Please sign in to comment.