Commit 39d18d9c authored by Nigel McNie's avatar Nigel McNie
Browse files

Set the dropdown for inviting users to the default group role.

parent 5188d67c
......@@ -57,6 +57,7 @@ foreach ($roles as $k => &$v) {
$v = $v->display;
}
safe_require('grouptype', $group->grouptype);
$form = pieform(array(
'name' => 'invitetogroup',
'autofocus' => false,
......@@ -72,6 +73,7 @@ $form = pieform(array(
'type' => 'select',
'options' => $roles,
'title' => get_string('Role', 'group'),
'defaultvalue' => call_static_method('GroupType' . $group->grouptype, 'default_role'),
),
'submit' => array(
'type' => 'submitcancel',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment