]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15731 Removed default grouping for modules which do not support grouping - Commit...
authortjhunt <tjhunt>
Mon, 21 Jul 2008 13:00:41 +0000 (13:00 +0000)
committertjhunt <tjhunt>
Mon, 21 Jul 2008 13:00:41 +0000 (13:00 +0000)
course/modedit.php

index 69ec751822c78dd2f4bd15fc9f3bb83ffb528d68..8d4ce927bb4115d0e0b8d5c5ae1d82fdda2862de 100644 (file)
         $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;
         }