Skip to content

Commit

Permalink
MDL-22735 finally fixed incorrectly hardcoded groupedit button on cou…
Browse files Browse the repository at this point in the history
…rse page in edit mode
  • Loading branch information
skodak committed Jul 25, 2010
1 parent 74f64f6 commit 525e16c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions course/lib.php
Expand Up @@ -1465,8 +1465,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
}

if ($isediting) {
// TODO: we must define this as mod property!
if ($groupbuttons and $mod->modname != 'label' and $mod->modname != 'resource' and $mod->modname != 'glossary') {
if ($groupbuttons and plugin_supports('mod', $mod->modname, FEATURE_GROUPS, 0)) {
if (! $mod->groupmodelink = $groupbuttonslink) {
$mod->groupmode = $course->groupmode;
}
Expand Down

0 comments on commit 525e16c

Please sign in to comment.