MDL-49753 enrolments: preselct status filter if needed
authorAlex Mitin <alexpmitin@gmail.com>
Tue, 7 Apr 2015 07:53:45 +0000 (15:53 +0800)
committerAlex Mitin <alexpmitin@gmail.com>
Tue, 7 Apr 2015 08:19:01 +0000 (16:19 +0800)
enrol/users.php

index ac2b68d..4bab60f 100644 (file)
@@ -220,7 +220,8 @@ if (!has_capability('moodle/course:viewhiddenuserfields', $context)) {
 
 $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));
+$filterform->set_data(array('search' => $search, 'ifilter' => $filter, 'role' => $role,
+    'filtergroup' => $fgroup, 'status' => $status));
 
 $table->set_fields($fields, $renderer);