Merge branch 'MDL-26338' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-02-14 19:57:38 +01:00
commit 89bf60cdbc
2 changed files with 2 additions and 2 deletions

View File

@ -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 " .

View File

@ -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 " .