Skip to content

Commit

Permalink
MDL-19028 Hiding hidden category from student report instead of grade…
Browse files Browse the repository at this point in the history
… items. See code diff for better explanation. Merged from MOODLE_19_STABLE
  • Loading branch information
nicolasconnault committed Apr 30, 2009
1 parent 61cad74 commit 9e322c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grade/report/user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ private function fill_table_recursive(&$element) {
$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;
Expand Down

0 comments on commit 9e322c8

Please sign in to comment.