diff --git a/src/Extensions/SiteTreeSubsites.php b/src/Extensions/SiteTreeSubsites.php index 5ac586a..d69383b 100644 --- a/src/Extensions/SiteTreeSubsites.php +++ b/src/Extensions/SiteTreeSubsites.php @@ -105,7 +105,7 @@ class SiteTreeSubsites extends DataExtension $subsitesMap = []; if ($subsites && $subsites->count()) { $subsitesToMap = $subsites->exclude('ID', $this->owner->SubsiteID); - $subsitesMap = $subsitesToMap->map('ID', 'Title'); + $subsitesMap = $subsitesToMap->map('ID', 'Title')->toArray(); } // Master page edit field (only allowed from default subsite to avoid inconsistent relationships)