mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-63571 grades: switch firstname/lastname order in title row
This commit is contained in:
parent
dccda6546b
commit
b08e7312c3
1 changed files with 4 additions and 4 deletions
|
@ -1914,9 +1914,9 @@ class grade_report_grader extends grade_report {
|
||||||
$firstlink = html_writer::link(new moodle_url($this->baseurl, array('sortitemid'=>'firstname')), $strfirstname);
|
$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);
|
$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') {
|
if ($this->sortorder == 'ASC') {
|
||||||
$arrows['studentname'] .= $iconasc;
|
$arrows['studentname'] .= $iconasc;
|
||||||
} else {
|
} 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') {
|
if ($this->sortorder == 'ASC') {
|
||||||
$arrows['studentname'] .= $iconasc;
|
$arrows['studentname'] .= $iconasc;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue