Permalink
Browse files

MDL-36169 fix enrolled users sorting by alphanumerical column

Credit goes to Nicholas Koeppen, thanks!
  • Loading branch information...
1 parent da255ad commit 21f869131d7103f49cb6f6d32df77e3429a98ab9 @skodak skodak committed with danpoltawski Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enrol/renderer.php
View
@@ -431,7 +431,7 @@ public function __construct(course_enrolment_manager $manager) {
$this->page = optional_param(self::PAGEVAR, 0, PARAM_INT);
$this->perpage = optional_param(self::PERPAGEVAR, self::DEFAULTPERPAGE, PARAM_INT);
- $this->sort = optional_param(self::SORTVAR, self::DEFAULTSORT, PARAM_ALPHA);
+ $this->sort = optional_param(self::SORTVAR, self::DEFAULTSORT, PARAM_ALPHANUM);
$this->sortdirection = optional_param(self::SORTDIRECTIONVAR, self::DEFAULTSORTDIRECTION, PARAM_ALPHA);
$this->attributes = array('class'=>'userenrolment');

0 comments on commit 21f8691

Please sign in to comment.