MDL-15731 Removed default grouping for modules which do not support grouping

This commit is contained in:
sam_marshall
2008-07-21 11:46:00 +00:00
parent e68f5a9bf6
commit f9e7707b90
+5
View File
@@ -50,6 +50,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;
}