mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
MDL-43908 mod_assign: Order submissions by course id then cm id
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
This commit is contained in:
parent
86dced433e
commit
f33be9eb36
@ -1609,7 +1609,8 @@ class assign {
|
||||
JOIN {grade_items} gri ON gri.iteminstance = a.id AND gri.courseid = a.course AND gri.itemmodule = md.name
|
||||
WHERE g.timemodified >= :yesterday AND
|
||||
g.timemodified <= :today AND
|
||||
uf.mailed = 0 AND gri.hidden = 0";
|
||||
uf.mailed = 0 AND gri.hidden = 0
|
||||
ORDER BY a.course, cm.id";
|
||||
|
||||
$params = array('yesterday' => $yesterday, 'today' => $timenow);
|
||||
$submissions = $DB->get_records_sql($sql, $params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user