MINOR Using ListboxField instead of CheckboxSetField in Member->getCMSFields() for group assignment

This commit is contained in:
Ingo Schommer 2012-03-05 10:55:32 +01:00
parent 6e3ceefbb8
commit e8ad2c2173

View File

@ -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).