mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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();
|
$groupsMap = DataList::create('Group')->map('ID', 'Breadcrumbs')->toArray();
|
||||||
asort($groupsMap);
|
asort($groupsMap);
|
||||||
$fields->addFieldToTab('Root.Main',
|
$fields->addFieldToTab('Root.Main',
|
||||||
Object::create('CheckboxSetField', 'Groups', singleton('Group')->i18n_plural_name())
|
Object::create('ListboxField', 'Groups', singleton('Group')->i18n_plural_name())
|
||||||
->setTemplate('CheckboxSetField_Select')
|
->setMultiple(true)->setSource($groupsMap)
|
||||||
->setSource($groupsMap)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add permission field (readonly to avoid complicated group assignment logic).
|
// Add permission field (readonly to avoid complicated group assignment logic).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user