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:
Dylan Wagstaff 2018-03-26 11:28:32 +13:00 committed by GitHub
commit d9bef262a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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