From f9e7707b902c71be27bc2a7c6693323b2a2ccc25 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Mon, 21 Jul 2008 11:46:00 +0000 Subject: [PATCH] MDL-15731 Removed default grouping for modules which do not support grouping --- course/modedit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/course/modedit.php b/course/modedit.php index c55880f3cfd..2170034bf06 100644 --- a/course/modedit.php +++ b/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; }