MDL-50169: Fix grade report SQL logic

This commit is contained in:
Skylar Kelty 2015-05-12 08:03:56 +01:00
parent 753d681076
commit 6e60e99570

View File

@ -413,7 +413,7 @@ class tablelog extends \table_sql implements \renderable {
$sql = "SELECT $select $sql = "SELECT $select
FROM {grade_grades_history} ggh FROM {grade_grades_history} ggh
LEFT JOIN {grade_items} gi ON gi.id = ggh.itemid JOIN {grade_items} gi ON gi.id = ggh.itemid
JOIN {user} u ON u.id = ggh.userid JOIN {user} u ON u.id = ggh.userid
LEFT JOIN {user} ug ON ug.id = ggh.usermodified LEFT JOIN {user} ug ON ug.id = ggh.usermodified
WHERE $where"; WHERE $where";