# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. Index: moodle/mod/quiz/report/reportlib.php --- moodle/mod/quiz/report/reportlib.php Base (1.1.2.7) +++ moodle/mod/quiz/report/reportlib.php Locally Modified (Based On 1.1.2.7) @@ -99,7 +99,7 @@ break; } if ($qmfilterattempts){ - $qmsubselect = "(SELECT id FROM {$CFG->prefix}quiz_attempts WHERE u.id = userid ORDER BY $qmorderby LIMIT 1)=qa.id"; + $qmsubselect = "(SELECT id FROM {$CFG->prefix}quiz_attempts WHERE u.id = userid AND quiz=" . $quiz->id . " ORDER BY $qmorderby LIMIT 1)=qa.id"; } else { $qmsubselect = ''; }