Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d8f73
)
MDL-68892 mod_h5pactivity: add required to package
author
Ferran Recio
<ferran@moodle.com>
Thu, 20 Aug 2020 15:16:27 +0000
(17:16 +0200)
committer
Ferran Recio
<ferran@moodle.com>
Thu, 20 Aug 2020 15:20:13 +0000
(17:20 +0200)
mod/h5pactivity/mod_form.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/h5pactivity/mod_form.php
b/mod/h5pactivity/mod_form.php
index
40e17dd
..
2de9409
100644
(file)
--- 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();