Skip to content

Commit

Permalink
Merge branch 'w33_MDL-28982_m21_sqlfullname' of git://github.com/skod…
Browse files Browse the repository at this point in the history
…ak/moodle into MOODLE_21_STABLE
  • Loading branch information
Aparup Banerjee committed Aug 23, 2011
2 parents e9f8af2 + 181b0dc commit 1b502df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/report/grading/report.php
Expand Up @@ -520,7 +520,7 @@ protected function get_question_state_summary($slots) {
*/
protected function get_usage_ids_where_question_in_state($summarystate, $slot,
$questionid = null, $orderby = 'random', $page = 0, $pagesize = null) {
global $CFG;
global $CFG, $DB;
$dm = new question_engine_data_mapper();

if ($pagesize && $orderby != 'random') {
Expand All @@ -544,7 +544,7 @@ protected function get_usage_ids_where_question_in_state($summarystate, $slot,
} else if ($orderby == 'student' || $orderby == 'idnumber') {
$qubaids->from .= " JOIN {user} u ON quiza.userid = u.id ";
if ($orderby == 'student') {
$orderby = sql_fullname('u.firstname', 'u.lastname');
$orderby = $DB->sql_fullname('u.firstname', 'u.lastname');
}
}

Expand Down

0 comments on commit 1b502df

Please sign in to comment.