Student Grades not displaying properly

Student Grades not displaying properly

by mo ollek -
Number of replies: 3
Hello - I just upgraded to moodle 1.8 and the students grades (in student view) are not displaying properly. Instead of displaying the categories, weights, etc, it is displaying activity grades only.

- Mo ollek

In reply to mo ollek

Re: Student Grades not displaying properly

by Jason Skinner -
I am having the same problem. It occurred immediately after upgrading to moodle 1.8.
In reply to Jason Skinner

Fixed my problem....

by Jason Skinner -
Don't know if it's "proper", but it seems to work ok, now.

I found the following lines of code in grade/lib.php (they appear twice!):
 // if can't see course grades, print single grade view
 if (!has_capability('moodle/course:viewcoursegrades', $context)) {
 return print_student_grade($USER, $course);
 }
and changed both sets to
 // if can't see course grades, print single grade view
 if (!has_capability('moodle/course:viewcoursegrades', $context)) {
 $view_by_student = $USER->id;
 }
This fixed my problem. I don't know if it's a band-aid or a real solution. I know very little about PHP.
In reply to Jason Skinner

Re: Fixed my problem....

by mo ollek -
Hey you know enough to fix the problem - thanks -- problem solved.

- mo ollek