From e405dff9467612e5d07827ca5408a21dccd0cf82 Mon Sep 17 00:00:00 2001 From: Raissa North Date: Thu, 1 Feb 2018 14:24:04 +1300 Subject: [PATCH] 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 --- src/Extensions/SiteTreeSubsites.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Extensions/SiteTreeSubsites.php b/src/Extensions/SiteTreeSubsites.php index 689197d..de7b60e 100644 --- a/src/Extensions/SiteTreeSubsites.php +++ b/src/Extensions/SiteTreeSubsites.php @@ -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?')