Commit 9e322c8c authored by nicolasconnault's avatar nicolasconnault
Browse files

MDL-19028 Hiding hidden category from student report instead of grade items....

MDL-19028 Hiding hidden category from student report instead of grade items. See code diff for better explanation. Merged from MOODLE_19_STABLE
parent 61cad74f
......@@ -206,8 +206,8 @@ class grade_report_user extends grade_report {
$excluded = '';
$class = '';
// If this is a hidden grade item, hide it completely from the user. showhiddenitems: 0 = hide all, 1 = show only hidden until, 2 = show all
if ($grade_object->is_hidden() && !$this->canviewhidden && (
// If this is a hidden grade category, hide it completely from the user. showhiddenitems: 0 = hide all, 1 = show only hidden until, 2 = show all
if ($type == 'category' && $grade_object->is_hidden() && !$this->canviewhidden && (
$this->showhiddenitems == 0 ||
($this->showhiddenitems == 1 && !$grade_object->is_hiddenuntil()))) {
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment