mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-38712 mod_glossary: fix missing PARAM type
This commit is contained in:
parent
0231f91d86
commit
1f0cd6ee98
@ -29,6 +29,7 @@ class mod_glossary_mod_form extends moodleform_mod {
|
||||
$mform->setDefault('entbypage', 10);
|
||||
$mform->addRule('entbypage', null, 'required', null, 'client');
|
||||
$mform->addRule('entbypage', null, 'numeric', null, 'client');
|
||||
$mform->setType('entbypage', PARAM_INT);
|
||||
|
||||
if (has_capability('mod/glossary:manageentries', context_system::instance())) {
|
||||
$mform->addElement('checkbox', 'globalglossary', get_string('isglobal', 'glossary'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user