Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Assignment
-
Labels:None
-
Environment:LAMP Stack, Single Server
-
Affected Branches:MOODLE_19_STABLE
Description
On the index Page for mod assignment grade results for hidden grade items are shown.
Problem could be:
$grading_info = grade_get_grades($course->id, 'mod', 'assignment', $cm->instance, $USER->id);
if (isset($grading_info->items[0])) {
$grade = $grading_info->items[0]->grades[$USER->id]->str_grade;
}
Fix could be:
$grading_info = grade_get_grades($course->id, 'mod', 'assignment', $cm->instance, $USER->id);
if (isset($grading_info->items[0])) {
if(!$grading_info->items[0]->hidden){
$grade = $grading_info->items[0]->grades[$USER->id]->str_grade;
}else{
$grade = '-';
}
}
Thanks for reporting this issue.
We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.
If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.
Michael d;
lqjjLKA0p6