diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 42b516a931..0cf03c2b96 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -38,6 +38,7 @@ use SilverStripe\Forms\ListboxField; use SilverStripe\Forms\LiteralField; use SilverStripe\Forms\OptionsetField; +use SilverStripe\Forms\SearchableMultiDropdownField; use SilverStripe\Forms\Tab; use SilverStripe\Forms\TabSet; use SilverStripe\Forms\TextareaField; @@ -2296,11 +2297,12 @@ public function getSettingsFields() _t(__CLASS__.'.VIEWERGROUPS', "Viewer Groups"), Group::class ), - $viewerMembersField = ListboxField::create( + $viewerMembersField = SearchableMultiDropdownField::create( "ViewerMembers", _t(__CLASS__.'.VIEWERMEMBERS', "Viewer Users"), - $membersMap, - ), + Member::get(), + ) + ->setIsLazyLoaded(true), $editorsOptionsField = new OptionsetField( "CanEditType", _t(__CLASS__.'.EDITHEADER', "Who can edit this page?") @@ -2310,11 +2312,12 @@ public function getSettingsFields() _t(__CLASS__.'.EDITORGROUPS', "Editor Groups"), Group::class ), - $editorMembersField = ListboxField::create( + $editorMembersField = SearchableMultiDropdownField::create( "EditorMembers", _t(__CLASS__.'.EDITORMEMBERS', "Editor Users"), - $membersMap + Member::get() ) + ->setIsLazyLoaded(true) ) ) );