Skip to content

Commit

Permalink
Merge pull request #752 from creative-commoners/pulls/4.5/member-list…
Browse files Browse the repository at this point in the history
…-template

FIX Use userforms template for member list field, fixes display rule issue
  • Loading branch information
NightJar authored Mar 25, 2018
2 parents 1ee7e15 + f7ffb70 commit d9bef26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/model/editableformfields/EditableMemberListField.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ public function getFormField()
}

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

Expand Down

0 comments on commit d9bef26

Please sign in to comment.