mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-37546 Assignment fix assign_get_recent_mod_activity code cleanup regression.
This commit is contained in:
parent
50ac16b8d0
commit
f93fdcef86
@ -616,13 +616,13 @@ function assign_get_recent_mod_activity(&$activities,
|
|||||||
|
|
||||||
$userfields = user_picture::fields('u', null, 'userid');
|
$userfields = user_picture::fields('u', null, 'userid');
|
||||||
|
|
||||||
if (!$submissions = $DB->get_records_sql('SELECT asb.id, asb.timemodified,
|
if (!$submissions = $DB->get_records_sql('SELECT asb.id, asb.timemodified, ' .
|
||||||
$userfields
|
$userfields .
|
||||||
FROM {assign_submission} asb
|
' FROM {assign_submission} asb
|
||||||
JOIN {assign} a ON a.id = asb.assignment
|
JOIN {assign} a ON a.id = asb.assignment
|
||||||
JOIN {user} u ON u.id = asb.userid
|
JOIN {user} u ON u.id = asb.userid ' .
|
||||||
$groupjoin
|
$groupjoin .
|
||||||
WHERE asb.timemodified > :timestart AND
|
' WHERE asb.timemodified > :timestart AND
|
||||||
a.id = :cminstance
|
a.id = :cminstance
|
||||||
' . $userselect . ' ' . $groupselect .
|
' . $userselect . ' ' . $groupselect .
|
||||||
' ORDER BY asb.timemodified ASC', $params)) {
|
' ORDER BY asb.timemodified ASC', $params)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user