Skip to content
Snippets Groups Projects
Commit 9fca39eb authored by Thomas Marstrander's avatar Thomas Marstrander
Browse files

Fix filtering in the results table crashing because of no user table.

parent 87aa6bed
No related branches found
No related tags found
No related merge requests found
......@@ -198,7 +198,6 @@ class results {
// Join on xAPI results.
$join .= ' LEFT JOIN {hvp_xapi_results} x ON g.userid = x.user_id';
$join .= " LEFT JOIN {user} u ON u.id = g.userid";
$groupby = ' GROUP BY i.id, g.id, u.id, i.iteminstance, x.id';
// Get from statement.
......@@ -283,7 +282,7 @@ class results {
* @return string
*/
protected function get_from_sql() {
return " FROM {grade_items} i LEFT JOIN {grade_grades} g ON i.id = g.itemid";
return " FROM {grade_items} i LEFT JOIN {grade_grades} g ON i.id = g.itemid LEFT JOIN {user} u ON u.id = g.userid";
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment