diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index b38af38a3e9..a3235ce1e00 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -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'); + } } }