Skip to content

Commit

Permalink
FIX Add an empty string to the subsite operations dropdown.
Browse files Browse the repository at this point in the history
This prevents a subsite from being chosen as the default option, assuming this is undesired
  • Loading branch information
raissanorth committed Feb 1, 2018
1 parent 809b1d9 commit e405dff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Extensions/SiteTreeSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ public function updateCMSFields(FieldList $fields)
DropdownField::create('CopyToSubsiteID', _t(
__CLASS__ . '.CopyToSubsite',
'Copy page to subsite'
), $subsitesMap),
), $subsitesMap)
->setEmptyString('Select an Option'),
CheckboxField::create(
'CopyToSubsiteWithChildren',
_t(__CLASS__ . '.CopyToSubsiteWithChildren', 'Include children pages?')
Expand Down

0 comments on commit e405dff

Please sign in to comment.