MDL-50169: Fix grade report SQL logic

This commit is contained in:
Skylar Kelty
2015-05-19 02:03:30 +02:00
committed by Eloy Lafuente (stronk7)
parent aff87a12e2
commit 35a0d15031
@@ -413,7 +413,7 @@ class tablelog extends \table_sql implements \renderable {
$sql = "SELECT $select
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
LEFT JOIN {user} ug ON ug.id = ggh.usermodified
WHERE $where";