From e8ad2c2173ac541b57c2267aed390ac7e858a1b5 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 5 Mar 2012 10:55:32 +0100 Subject: [PATCH] MINOR Using ListboxField instead of CheckboxSetField in Member->getCMSFields() for group assignment --- security/Member.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/security/Member.php b/security/Member.php index 51b0128be..5203e28ab 100644 --- a/security/Member.php +++ b/security/Member.php @@ -1138,9 +1138,8 @@ class Member extends DataObject { $groupsMap = DataList::create('Group')->map('ID', 'Breadcrumbs')->toArray(); asort($groupsMap); $fields->addFieldToTab('Root.Main', - Object::create('CheckboxSetField', 'Groups', singleton('Group')->i18n_plural_name()) - ->setTemplate('CheckboxSetField_Select') - ->setSource($groupsMap) + Object::create('ListboxField', 'Groups', singleton('Group')->i18n_plural_name()) + ->setMultiple(true)->setSource($groupsMap) ); // Add permission field (readonly to avoid complicated group assignment logic).