diff --git a/mod/h5pactivity/mod_form.php b/mod/h5pactivity/mod_form.php index 40e17dd452b..2de940952d2 100644 --- a/mod/h5pactivity/mod_form.php +++ b/mod/h5pactivity/mod_form.php @@ -72,6 +72,7 @@ class mod_h5pactivity_mod_form extends moodleform_mod { $mform->addElement('filemanager', 'packagefile', get_string('package', 'mod_h5pactivity'), null, $options); $mform->addHelpButton('packagefile', 'package', 'mod_h5pactivity'); + $mform->addRule('packagefile', null, 'required'); // Add a link to the Content Bank if the user can access. $course = $this->get_course();