Skip to content
Browse files

Merge branch 'w33_MDL-28982_m21_sqlfullname' of git://github.com/skod…

…ak/moodle into MOODLE_21_STABLE
  • Loading branch information...
2 parents e9f8af2 + 181b0dc commit 1b502dff19f84c157bad4553d8fb68fd520cbaf2 @nebgor nebgor committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/report/grading/report.php
View
4 mod/quiz/report/grading/report.php
@@ -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') {
@@ -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');
}
}

0 comments on commit 1b502df

Please sign in to comment.
Something went wrong with that request. Please try again.