Commit 3eb0da77 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Allow users to be removed from groups when they're not on the 1st page of the...

Allow users to be removed from groups when they're not on the 1st page of the member list (bug 3120)
parent 82282314
......@@ -48,6 +48,12 @@ if (!empty($membershiptype) && $role != 'admin') {
throw new AccessDeniedException();
}
$remove = param_variable('removeuser', null);
$member = param_integer('member', null);
if ($remove && $member) {
group_get_removeuser_form($member, $group->id);
}
// Search related stuff for member pager
$query = trim(param_variable('query', ''));
$offset = param_integer('offset', 0);
......
......@@ -528,7 +528,7 @@ function group_get_removeuser_form($userid, $groupid) {
'type' => 'hidden',
'value' => $userid,
),
'submit' => array(
'removeuser' => array(
'type' => 'submit',
'value' => get_string('removefromgroup', 'group'),
),
......
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