Manual grading by student plugin

Re: Manual grading by student plugin

wót Peter Halverson -
Anzahl Antworten: 1

Hello again Tim, and everyone,

I was able to get the list of quiz attempts to display with the student names, thanks to your help.

However, it appears that some changes to report.php have happened since the original posts, so here is what I had to do to make it work for my Moodle 2.9.3 installation.

I edited moodle/mod/quiz/report/gradingstudents/report.php

I searched for "u.idnumber",  and found it in two places.  The first place was around line number 388, in a line that read

   "qa.preview, qa.state, u.idnumber"      (it was part of a sql SELECT command)

I changed this line to be "qa.preview, qa.state, u.firstname, u.lastname"

The 2nd place was a few lines down, and it read "ORDER BY u.idnumber ASC, attemptid ASC";

I changed this line to be ORDER BY u.lastname ASC, u.firstname ASC, attemptid ASC";

I search for "$row[] = format_string($attempt->idnumber);" and found it around line 222.

I changed it to "$row[] = fullname($attempt);"          (This part was exactly as Tim explained)

And it works!

The main difference seems to be that I had to include the first name.  If I didn't do that, then some weird looking php stuff came out on the list of attempts.

---Peter H.