mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Restored a glovbal declaration for SESSION (to make sortoder work again)
This commit is contained in:
parent
06954a036c
commit
63d6efa23e
@ -250,6 +250,9 @@ class grade_report_grader extends grade_report {
|
||||
* for displaying grades.
|
||||
*/
|
||||
function setup_sortitemid() {
|
||||
|
||||
global $SESSION;
|
||||
|
||||
if ($this->sortitemid) {
|
||||
if (!isset($SESSION->gradeuserreport->sort)) {
|
||||
$this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
|
||||
@ -500,16 +503,16 @@ class grade_report_grader extends grade_report {
|
||||
|
||||
|
||||
if ($type == 'filler' or $type == 'fillerfirst' or $type == 'fillerlast') {
|
||||
$headerhtml .= '<td class="'.$type.$catlevel.'" '.$colspan.'> </td>';
|
||||
$headerhtml .= '<th class="'.$type.$catlevel.'" '.$colspan.'> </th>';
|
||||
} else if ($type == 'category') {
|
||||
$headerhtml .= '<td class="category'.$catlevel.'" '.$colspan.'>'.$element['object']->get_name();
|
||||
$headerhtml .= '<th class="category'.$catlevel.'" '.$colspan.'>'.$element['object']->get_name();
|
||||
|
||||
// Print icons
|
||||
if ($USER->gradeediting) {
|
||||
$headerhtml .= $this->get_icons($element);
|
||||
}
|
||||
|
||||
$headerhtml .= '</td>';
|
||||
$headerhtml .= '</th>';
|
||||
} else {
|
||||
if ($element['object']->id == $this->sortitemid) {
|
||||
if ($this->sortorder == 'ASC') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user