MDL-63571 grades: switch firstname/lastname order in title row

This commit is contained in:
Luca Bösch
2018-11-20 14:16:09 +08:00
committed by Peter
parent fc2cde8f80
commit b6f83c07ed
+4 -4
View File
@@ -1914,9 +1914,9 @@ class grade_report_grader extends grade_report {
$firstlink = html_writer::link(new moodle_url($this->baseurl, array('sortitemid'=>'firstname')), $strfirstname);
$lastlink = html_writer::link(new moodle_url($this->baseurl, array('sortitemid'=>'lastname')), $strlastname);
$arrows['studentname'] = $lastlink;
$arrows['studentname'] = $firstlink;
if ($this->sortitemid === 'lastname') {
if ($this->sortitemid === 'firstname') {
if ($this->sortorder == 'ASC') {
$arrows['studentname'] .= $iconasc;
} else {
@@ -1924,9 +1924,9 @@ class grade_report_grader extends grade_report {
}
}
$arrows['studentname'] .= ' ' . $firstlink;
$arrows['studentname'] .= ' ' . $lastlink;
if ($this->sortitemid === 'firstname') {
if ($this->sortitemid === 'lastname') {
if ($this->sortorder == 'ASC') {
$arrows['studentname'] .= $iconasc;
} else {