Skip to content

Commit

Permalink
grade/report: MDL-21001 Gradebook shows ranges always
Browse files Browse the repository at this point in the history
We unconditionnally set them to visible, ignoring configured settings.
Fix it.
  • Loading branch information
iarenaza committed Nov 1, 2010
1 parent f8392c8 commit d09cad4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions grade/report/user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ public function __construct($courseid, $gpr, $context, $userid) {
$this->showhiddenitems = grade_get_setting($this->courseid, 'report_user_showhiddenitems', $CFG->grade_report_user_showhiddenitems);
$this->showtotalsifcontainhidden = grade_get_setting($this->courseid, 'report_user_showtotalsifcontainhidden', $CFG->grade_report_user_showtotalsifcontainhidden);

$this->showrange = true;

$this->switch = grade_get_setting($this->courseid, 'aggregationposition', $CFG->grade_aggregationposition);

// Grab the grade_tree for this course
Expand Down

0 comments on commit d09cad4

Please sign in to comment.