Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-38712 mod_glossary: fix missing PARAM type

  • Loading branch information...
commit 1f0cd6ee9810a6111182fee37ab1ef4ee6186c1a 1 parent 0231f91
@danpoltawski danpoltawski authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  mod/glossary/mod_form.php
View
1  mod/glossary/mod_form.php
@@ -29,6 +29,7 @@ function definition() {
$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'));
Please sign in to comment.
Something went wrong with that request. Please try again.