mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Removing code block which, upon closer inspection, does nothing at all.
This is obviously a copy/paste artifact from mod/quiz/report/overview/report.php, but notice that over there is non-trivial processing going on over there with the sortorder array! The sortorder can be used directly in queries, just stick an "ORDER BY " in front.
This commit is contained in:
parent
9894b8246c
commit
86f6539591
@ -902,13 +902,7 @@ class assignment_base {
|
||||
}
|
||||
|
||||
if ($sort = $table->get_sql_sort()) {
|
||||
$sortparts = explode(',', $sort);
|
||||
$newsort = array();
|
||||
foreach ($sortparts as $sortpart) {
|
||||
$sortpart = trim($sortpart);
|
||||
$newsort[] = $sortpart;
|
||||
}
|
||||
$sort = ' ORDER BY '.implode(', ', $newsort);
|
||||
$sort = ' ORDER BY '.$sort;
|
||||
}
|
||||
|
||||
$select = 'SELECT u.id, u.id, u.firstname, u.lastname, u.picture, s.id AS submissionid, s.grade, s.comment, s.timemodified, s.timemarked, ((s.timemarked > 0) AND (s.timemarked >= s.timemodified)) AS status ';
|
||||
|
Loading…
x
Reference in New Issue
Block a user