grade/report: MDL-21001 Gradebook shows ranges always

We unconditionnally set them to visible, ignoring configured settings.
Fix it.
This commit is contained in:
Inaki 2010-11-01 10:24:21 +00:00
parent f8392c810c
commit d09cad434b

View File

@ -101,8 +101,6 @@ class grade_report_user extends grade_report {
$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