From 1be3ce4510f40f4451d36ca2d8b70611f2d15301 Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Fri, 13 Jun 2008 12:46:54 +0000 Subject: [PATCH] MDL-15224 "Overview results in quiz module export to excel and txt fail" Fixed. --- mod/quiz/report/overview/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/quiz/report/overview/report.php b/mod/quiz/report/overview/report.php index ba3e92b4f97..1a84aa278f0 100644 --- a/mod/quiz/report/overview/report.php +++ b/mod/quiz/report/overview/report.php @@ -355,7 +355,7 @@ class quiz_report extends quiz_default_report { // and there is a limit to how many joins you can have in one query. In MySQL it // is 61. This means that when having more than 29 questions the query will fail. // So we join just the tables needed to sort the attempts. - if($sort = $table->get_sql_sort()) { + if(!$download && $sort = $table->get_sql_sort()) { if (!$download && $detailedmarks) { $from .= ' '; $sortparts = explode(',', $sort);