mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
Merge branch 'MDL-26338' of git://github.com/timhunt/moodle
This commit is contained in:
commit
89bf60cdbc
@ -202,7 +202,7 @@ class quiz_overview_report extends quiz_default_report {
|
||||
if (!$nostudents || ($attemptsmode == QUIZ_REPORT_ATTEMPTS_ALL)) {
|
||||
|
||||
// Construct the SQL
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, \'0\')').' AS uniqueid, ';
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, 0)').' AS uniqueid, ';
|
||||
if ($qmsubselect) {
|
||||
$fields .=
|
||||
"(CASE " .
|
||||
|
@ -185,7 +185,7 @@ class quiz_responses_report extends quiz_default_report {
|
||||
$hasfeedback = quiz_has_feedback($quiz);
|
||||
|
||||
// Construct the SQL
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, \'0\')').' AS concattedid, ';
|
||||
$fields = $DB->sql_concat('u.id', '\'#\'', 'COALESCE(qa.attempt, 0)').' AS concattedid, ';
|
||||
if ($qmsubselect) {
|
||||
$fields .=
|
||||
"(CASE " .
|
||||
|
Loading…
x
Reference in New Issue
Block a user