MDL-59366 core_user: Disable sorting for roles and groups columns
authorJun Pataleta <jun@moodle.com>
Fri, 4 Aug 2017 01:07:36 +0000 (09:07 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 4 Aug 2017 01:14:30 +0000 (09:14 +0800)
user/classes/participants_table.php

index 2bc24c6..aa8e2f9 100644 (file)
@@ -204,6 +204,8 @@ class participants_table extends \table_sql {
         $this->sortable(true, 'firstname');
 
         $this->no_sorting('select');
         $this->sortable(true, 'firstname');
 
         $this->no_sorting('select');
+        $this->no_sorting('roles');
+        $this->no_sorting('groups');
 
         $this->set_attribute('id', 'participants');
 
 
         $this->set_attribute('id', 'participants');