Workshop Grades Not Appearing in Grades Report in Moodle 1.9

Re: Workshop Grades Not Appearing in Grades Report in Moodle 1.9

by Phil Ventura -
Number of replies: 4
Ok, so I figured out a fix. In the file moode/lib/gradelib.php, in the function named grade_update, down near the end of the function is the code:
if (empty($g['userid']) or ($k != $g['userid'])) {
 debugging('Incorrect grade array index, must be user id! Grade
 ignored.');
Add this code before the code above:
 if (!empty($g['userid']) and ($k != $g['userid'])) {
 debugging('Reindexing!');
 if (array_key_exists($g['userid'], $grades)) {
 debugging('Entry in $grades exists for uid ' . $g['userid']);
 }
 else {
 $grades[$g['userid']] = $g;
 }
 }
Once you've done that, then go to the gradebook and select Categories and items from the drop-down menu:
0406719f-4808-438f-b933-72da59f65395_b2a0292a-1d62-43cb-bfa1-5e98a7b714c9_static_0_0_2008-05-14_0839.png

Then, click the Synchronize legacy grades button:
9d38fcbf-9d04-4940-a8f1-22b2f085aa68_b2a0292a-1d62-43cb-bfa1-5e98a7b714c9_static_0_0_2008-05-14_0842.png

In reply to Phil Ventura

Re: Workshop Grades Not Appearing in Grades Report in Moodle 1.9

by e klopfer -
Fantastic. That fix worked just fine.
In reply to Phil Ventura

Re: Workshop Grades Not Appearing in Grades Report in Moodle 1.9

by Séverin Terrier -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Testers Picture of Translators
You should fill a bug report in the tracker (or find and existing one) and give the solution there smile

Séverin