FIX Add an empty string to the subsite operations dropdown.

This prevents a subsite from being chosen as the default option, assuming this is undesired
This commit is contained in:
Raissa North 2018-02-01 14:24:04 +13:00
parent 809b1d9b85
commit e405dff946
1 changed files with 2 additions and 1 deletions

View File

@ -124,7 +124,8 @@ class SiteTreeSubsites extends DataExtension
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?')