MDL-30472 Course Making user lists sortable when lastacess field is hidden
authorAlexnader Bias <alexander.bias@uni-ulm.de>
Tue, 13 Dec 2011 05:17:43 +0000 (10:47 +0530)
committerAnkit Kumar Agarwal <ankit@moodle.com>
Tue, 13 Dec 2011 05:17:43 +0000 (10:47 +0530)
user/index.php

index 972364d..5954571 100644 (file)
 
     if (!isset($hiddenfields['lastaccess'])) {
         $table->sortable(true, 'lastaccess', SORT_DESC);
+    } else {
+        $table->sortable(true, 'firstname', SORT_ASC);
     }
 
     $table->no_sorting('roles');