MDL-38712 mod_glossary: fix missing PARAM type

This commit is contained in:
Dan Poltawski 2013-03-26 17:05:10 +08:00
parent 0231f91d86
commit 1f0cd6ee98

View File

@ -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'));