Skip to content

Commit

Permalink
MDL-48073 enrol: Fixed group filter resetting erroneously.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nivedita Setru authored and Dave Cooper committed Jan 19, 2015
1 parent 2ea6a2b commit 542db0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enrol/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ public function get_url_params() {
$args['search'] = $this->searchfilter;
}
if (!empty($this->groupfilter)) {
$args['group'] = $this->groupfilter;
$args['filtergroup'] = $this->groupfilter;
}
if ($this->statusfilter !== -1) {
$args['status'] = $this->statusfilter;
Expand Down
2 changes: 1 addition & 1 deletion enrol/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@

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

$table->set_fields($fields, $renderer);

Expand Down

0 comments on commit 542db0f

Please sign in to comment.