Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…rouping
  • Loading branch information...
commit f9e7707b902c71be27bc2a7c6693323b2a2ccc25 1 parent e68f5a9
sam_marshall authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 course/modedit.php
View
5 course/modedit.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.