Commit aa9ab0ca authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1703680: join group pagination error

In the screen that displays groups we can join
the functions associated with the 'join me' button
are given the correct group number (not the ones from
the first page of the pagination)

behatnotneeded

Change-Id: I1737947acd67258dd49f8c24bb69aacb5402aafc
parent 787ac996
......@@ -699,7 +699,7 @@ function group_update($new, $create=false) {
null, '', 'id');
$access = ($old->editroles == 'all' || $old->editroles == 'notmember');
db_begin();
foreach ($ids as $i => $artefact) {log_debug($artefact->id);
foreach ($ids as $i => $artefact) {
insert_record('artefact_access_role', (object) array(
'artefact' => $artefact->id,
'role' => 'tutor',
......@@ -1226,7 +1226,8 @@ function group_get_join_form($name, $groupid, $returnto='view') {
),
'group' => array(
'type' => 'hidden',
'value' => $groupid
'value' => $groupid,
'sesskey' => true,
),
'returnto' => array(
'type' => 'hidden',
......
Markdown is supported
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