FIX Use a userforms template for the member list field, fixes broken display rules

This commit is contained in:
Robbie Averill 2018-03-23 14:04:48 +13:00
parent 0a9f3f4365
commit 7cbffd8c84

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