MDL-15224 "Overview results in quiz module export to excel and txt fail" Fixed.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user