Skip to content

Commit

Permalink
Merge branch 'MDL-80498_master' of https://github.com/santoshndev/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
HuongNV13 committed Jan 17, 2024
2 parents 95c2217 + bfc9f17 commit 998f54c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions group/import_form.php
Expand Up @@ -53,6 +53,7 @@ function definition() {
$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);
Expand Down

0 comments on commit 998f54c

Please sign in to comment.