mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
FIX Use userforms template for member list field, fixes display rule issue
This commit is contained in:
parent
1ee7e1543b
commit
f7ffb706ce
@ -45,8 +45,13 @@ class EditableMemberListField extends EditableFormField
|
||||
}
|
||||
|
||||
$members = Member::map_in_groups($this->GroupID);
|
||||
$field = new DropdownField($this->Name, $this->EscapedTitle, $members);
|
||||
|
||||
$field = DropdownField::create($this->Name, $this->EscapedTitle, $members)
|
||||
->setTemplate('UserFormsDropdownField')
|
||||
->setFieldHolderTemplate('UserFormsField_holder');
|
||||
|
||||
$this->doUpdateFormField($field);
|
||||
|
||||
return $field;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user