Merge branch 'MDL-60145-master' of https://github.com/snake/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 18 Oct 2018 16:56:34 +0000 (18:56 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 18 Oct 2018 16:56:34 +0000 (18:56 +0200)
course/moodleform_mod.php

index b38af38..a3235ce 100644 (file)
@@ -290,6 +290,10 @@ abstract class moodleform_mod extends moodleform {
                 if ($mform->elementExists('groupingid')) {
                     $mform->removeElement('groupingid');
                 }
+                // Nor does the group restrictions button.
+                if ($mform->elementExists('restrictgroupbutton')) {
+                    $mform->removeElement('restrictgroupbutton');
+                }
             }
         }