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:
Dylan Wagstaff 2018-03-26 17:29:36 +13:00 committed by GitHub
commit 8c4363d429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}