From 1f0cd6ee9810a6111182fee37ab1ef4ee6186c1a Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Tue, 26 Mar 2013 17:05:10 +0800 Subject: [PATCH] MDL-38712 mod_glossary: fix missing PARAM type --- mod/glossary/mod_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/glossary/mod_form.php b/mod/glossary/mod_form.php index e7af45ae2e6..5342979cfde 100644 --- a/mod/glossary/mod_form.php +++ b/mod/glossary/mod_form.php @@ -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')); -- 2.43.0