mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #751 from creative-commoners/pulls/5.0/member-list-template
FIX Use a userforms template for the member list field, fixes broken display rules
This commit is contained in:
commit
8c4363d429
@ -54,8 +54,12 @@ class EditableMemberListField extends EditableFormField
|
|||||||
}
|
}
|
||||||
|
|
||||||
$members = Member::map_in_groups($this->GroupID);
|
$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);
|
$this->doUpdateFormField($field);
|
||||||
|
|
||||||
return $field;
|
return $field;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user