Skip to content
Browse files

MDL-37527 Assignment - Change query for print_overview so it uses an …

…index (postgres)

Reported by Mark Neilsen.

Conflicts:

	mod/assign/lib.php
  • Loading branch information...
1 parent d8613ef commit 6aafb32f8b888f1f804f12ea68d2b75bb74b1284 @damyon damyon committed Jan 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/assign/lib.php
View
2 mod/assign/lib.php
@@ -344,7 +344,7 @@ function assign_print_overview($courses, &$htmlarray) {
// get all user submissions, indexed by assignment id
$mysubmissions = $DB->get_records_sql("SELECT a.id AS assignment, a.nosubmissions AS nosubmissions, g.timemodified AS timemarked, g.grader AS grader, g.grade AS grade, s.status AS status
FROM {assign} a LEFT JOIN {assign_grades} g ON g.assignment = a.id AND g.userid = ? LEFT JOIN {assign_submission} s ON s.assignment = a.id AND s.userid = ?
- AND a.id $sqlassignmentids", array_merge(array($USER->id, $USER->id), $assignmentidparams));
+ WHERE a.id $sqlassignmentids", array($USER->id, $USER->id));
foreach ($assignments as $assignment) {
// Do not show assignments that are not open

0 comments on commit 6aafb32

Please sign in to comment.
Something went wrong with that request. Please try again.