Merge branch 'MDL-59931_master' of https://github.com/ctam/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2017-09-27 01:16:10 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ class quiz_overview_report extends quiz_attempts_report {
// Construct the SQL.
list($fields, $from, $where, $params) = $table->base_sql($allowedjoins);
$table->set_count_sql("SELECT COUNT(1) FROM $from WHERE $where", $params);
$table->set_count_sql("SELECT COUNT(1) FROM (SELECT $fields FROM $from WHERE $where) temp", $params);
// Test to see if there are any regraded attempts to be listed.
$fields .= ", COALESCE((
+1 -1
View File
@@ -151,7 +151,7 @@ class quiz_responses_report extends quiz_attempts_report {
list($fields, $from, $where, $params) = $table->base_sql($allowedjoins);
$table->set_count_sql("SELECT COUNT(1) FROM $from WHERE $where", $params);
$table->set_count_sql("SELECT COUNT(1) FROM (SELECT $fields FROM $from WHERE $where) temp", $params);
$table->set_sql($fields, $from, $where, $params);