mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Use a userforms template for the member list field, fixes broken display rules
This commit is contained in:
parent
0a9f3f4365
commit
7cbffd8c84
@ -54,8 +54,12 @@ class EditableMemberListField extends EditableFormField
|
||||
}
|
||||
|
||||
$members = Member::map_in_groups($this->GroupID);
|
||||
$field = DropdownField::create($this->Name, $this->Title ?: false, $members);
|
||||
$field = DropdownField::create($this->Name, $this->Title ?: false, $members)
|
||||
->setTemplate(EditableDropdown::class)
|
||||
->setFieldHolderTemplate(EditableFormField::class . '_holder');
|
||||
|
||||
$this->doUpdateFormField($field);
|
||||
|
||||
return $field;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user