Merge branch 'MDL-60145-34' of https://github.com/snake/moodle into MOODLE_34_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2018-10-18 18:57:58 +02:00
+4
View 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');
}
}
}