diff --git a/lib/portfolio/forms.php b/lib/portfolio/forms.php index 14ec89202bb..73390c9108e 100644 --- a/lib/portfolio/forms.php +++ b/lib/portfolio/forms.php @@ -321,6 +321,7 @@ class portfolio_instance_select extends moodleform { $mform =& $this->_form; $mform->addElement('select', 'instance', get_string('selectplugin', 'portfolio'), $options); $mform->addElement('hidden', 'id', $this->_customdata['id']); + $mform->setType('id', PARAM_INT); $this->add_action_buttons(true, get_string('next')); } }