Merge branch 'MDL-80498_402' of https://github.com/santoshndev/moodle into MOODLE_402_STABLE

This commit is contained in:
Huong Nguyen
2024-01-17 10:38:41 +07:00
+1
View File
@@ -53,6 +53,7 @@ class groups_import_form extends moodleform {
$filepickeroptions['filetypes'] = '*';
$filepickeroptions['maxbytes'] = get_max_upload_file_size();
$mform->addElement('filepicker', 'userfile', get_string('import'), null, $filepickeroptions);
$mform->addRule('userfile', null, 'required');
$mform->addElement('hidden', 'id');
$mform->setType('id', PARAM_INT);