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:
parent
bb52fe6f65
commit
c7d45f6da0
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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user