From f7ffb706ce784fbdcf388ce888b0df9ff934b5b9 Mon Sep 17 00:00:00 2001 From: Robbie Averill Date: Fri, 23 Mar 2018 14:11:39 +1300 Subject: [PATCH] FIX Use userforms template for member list field, fixes display rule issue --- code/model/editableformfields/EditableMemberListField.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/model/editableformfields/EditableMemberListField.php b/code/model/editableformfields/EditableMemberListField.php index 310e543..7d4ce2f 100644 --- a/code/model/editableformfields/EditableMemberListField.php +++ b/code/model/editableformfields/EditableMemberListField.php @@ -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; }