mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Using ListboxField instead of CheckboxSetField in Member->getCMSFields() for group assignment
This commit is contained in:
parent
6e3ceefbb8
commit
e8ad2c2173
@ -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).
|
||||
|
Loading…
Reference in New Issue
Block a user