MDL-62769 quiz statistics: graph should show all, not last, variant

This commit is contained in:
Tim Hunt
2018-06-21 14:55:53 +01:00
parent 180988c999
commit 12d4fe9ee6
+2 -1
View File
@@ -529,7 +529,8 @@ class quiz_statistics_report extends quiz_default_report {
$questions = quiz_report_get_significant_questions($quiz);
// Only load main question not sub questions.
$questionstatistics = $DB->get_records_select('question_statistics', 'hashcode = ? AND slot IS NOT NULL',
$questionstatistics = $DB->get_records_select('question_statistics',
'hashcode = ? AND slot IS NOT NULL AND variant IS NULL',
[$qubaids->get_hash_code()]);
// Configure what to display.