MDL-68464 user: Remove legacy selectall
authorAndrew Nicols <andrew@nicols.co.uk>
Tue, 19 May 2020 23:32:49 +0000 (07:32 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Tue, 19 May 2020 23:38:26 +0000 (07:38 +0800)
user/index.php

index 8966980..3078724 100644 (file)
@@ -230,7 +230,6 @@ $baseurl = new moodle_url('/user/index.php', array(
         'perpage' => $perpage));
 
 $participanttable = new \core_user\table\participants("user-index-participants-{$course->id}");
-$participanttable->set_selectall($selectall);
 $participanttable->define_baseurl($baseurl);
 
 // Manage enrolments.
@@ -415,7 +414,7 @@ if ($bulkoperations) {
         'data-action' => 'toggle',
         'data-togglegroup' => 'participants-table',
         'data-toggle' => 'action',
-        'disabled' => empty($selectall)
+        'disabled' => 'disabled'
     );
     $label = html_writer::tag('label', get_string("withselectedusers"),
             ['for' => 'formactionid', 'class' => 'col-form-label d-inline']);