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