Skip to content

Commit

Permalink
Merge branch 'MDL-46238_master-fix' of git://github.com/dmonllao/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Feb 25, 2015
2 parents b1a1840 + 52a5d7a commit 46d508c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

// When users reset the form, redirect back to first page without other params.
if (optional_param('resetbutton', '', PARAM_RAW) !== '') {
redirect('users.php?id=' . $id);
redirect('users.php?id=' . $id . '&newcourse=' . $newcourse);
}

$course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST);
Expand Down Expand Up @@ -218,7 +218,7 @@
}
}

$filterform = new enrol_users_filter_form('users.php', array('manager' => $manager, 'id' => $id),
$filterform = new enrol_users_filter_form('users.php', array('manager' => $manager, 'id' => $id, 'newcourse' => $newcourse),
'get', '', array('id' => 'filterform'));
$filterform->set_data(array('search' => $search, 'ifilter' => $filter, 'role' => $role, 'filtergroup' => $fgroup));

Expand Down
2 changes: 2 additions & 0 deletions enrol/users_forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,7 @@ function definition() {
// Add hidden fields required by page.
$mform->addElement('hidden', 'id', $this->_customdata['id']);
$mform->setType('id', PARAM_INT);
$mform->addElement('hidden', 'newcourse', $this->_customdata['newcourse']);
$mform->setType('newcourse', PARAM_BOOL);
}
}

0 comments on commit 46d508c

Please sign in to comment.