MDL-9761 Student's Gradebook view doesn't follow defaults establ;ished by the Instructor; patch by Jason Skinner

This commit is contained in:
skodak
2007-05-16 20:24:04 +00:00
parent 09048346de
commit 6e04be55d7
+2 -2
View File
@@ -1733,7 +1733,7 @@ function grade_view_category_grades($view_by_student) {
// if can't see course grades, print single grade view
if (!has_capability('moodle/course:viewcoursegrades', $context)) {
return print_student_grade($USER, $course);
$view_by_student = $USER->id;
}
if ($preferences->use_advanced == 0) {
@@ -2033,7 +2033,7 @@ function grade_view_all_grades($view_by_student) { // if mode=='grade' then we a
// if can't see course grades, print single grade view
if (!has_capability('moodle/course:viewcoursegrades', $context)) {
return print_student_grade($USER, $course);
$view_by_student = $USER->id;
}
list($grades_by_student, $all_categories) = grade_get_formatted_grades();