Skip to content

Commit

Permalink
MDL-15731 Removed default grouping for modules which do not support g…
Browse files Browse the repository at this point in the history
…rouping - Commiting the merge to head on behalf of sam.
  • Loading branch information
tjhunt committed Jul 21, 2008
1 parent 68f332f commit 9824e56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions course/modedit.php
Expand Up @@ -51,6 +51,11 @@
$form->add = $add;
$form->return = 0; //must be false if this is an add, go back to course view on cancel

// Turn off default grouping for modules that don't provide group mode
if($add=='resource' || $add=='glossary' || $add=='label') {
$form->groupingid=0;
}

if (!empty($type)) {
$form->type = $type;
}
Expand Down

0 comments on commit 9824e56

Please sign in to comment.