1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-12 11:15:49 +02:00

MDL-17226 reverted incorrect fix

This commit is contained in:
skodak 2009-01-01 23:55:20 +00:00
parent bb52fe6f65
commit c7d45f6da0
2 changed files with 2 additions and 5 deletions
grade/report/grader

@ -427,7 +427,7 @@ class grade_report_grader extends grade_report {
if (has_capability('moodle/grade:viewall', $this->context)
and has_capability('moodle/site:accessallgroups', $this->context)
and $COURSE->groupmode != NOGROUPS) { // TODO replace that last condition with proper check
and ($course_has_groups = true)) { // TODO replace that last condition with proper check
$html .= $this->print_toggle('groups', true);
}

@ -72,10 +72,7 @@ class grader_report_preferences_form extends moodleform {
if ($canviewhidden) {
$preferences['prefshow']['showaverages'] = $checkbox_default;
}
if ($course->groupmode != NOGROUPS) {
$preferences['prefshow']['showgroups'] = $checkbox_default;
}
$preferences['prefshow']['showgroups'] = $checkbox_default;
$preferences['prefshow']['showlocks'] = $checkbox_default;
$preferences['prefrows'] = array(