Skip to content

Commit

Permalink
MDL-35252: Fix a bug that creates unneccessary rows in grade_grades t…
Browse files Browse the repository at this point in the history
…able when unchecking 'overridden' check box in gradebook update
  • Loading branch information
Raymond Wijaya committed Sep 21, 2012
1 parent a3ab18c commit 0a66564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/assign/locallib.php
Expand Up @@ -4341,7 +4341,7 @@ public function get_user_grades_for_gradebook($userid) {
$graderesults = $DB->get_recordset_sql('SELECT u.id as userid, s.timemodified as datesubmitted, g.grade as rawgrade, g.timemodified as dategraded, g.grader as usermodified
FROM {user} u
LEFT JOIN {assign_submission} s ON u.id = s.userid and s.assignment = ?
LEFT JOIN {assign_grades} g ON u.id = g.userid and g.assignment = ?
JOIN {assign_grades} g ON u.id = g.userid and g.assignment = ?
' . $where, array($assignmentid, $assignmentid, $userid));


Expand Down

0 comments on commit 0a66564

Please sign in to comment.