From 9824e5670714afcbcfb470d3e7e97342a8e3b118 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 21 Jul 2008 13:00:41 +0000 Subject: [PATCH] MDL-15731 Removed default grouping for modules which do not support grouping - Commiting the merge to head on behalf of sam. --- course/modedit.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/course/modedit.php b/course/modedit.php index 69ec751822..8d4ce927bb 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -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; } -- 2.39.5