From 37836c19fb19f1213e2922806eb7fda110badfdc Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Wed, 27 Mar 2013 15:57:35 +0800 Subject: [PATCH] MDL-38738 portfolio: missing PARAM_TEXT --- lib/portfolio/forms.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/portfolio/forms.php b/lib/portfolio/forms.php index 2e95777326d..14ec89202bb 100644 --- a/lib/portfolio/forms.php +++ b/lib/portfolio/forms.php @@ -196,6 +196,7 @@ final class portfolio_admin_form extends moodleform { $mform->addElement('text', 'name', get_string('name'), 'maxlength="100" size="30"'); $mform->addRule('name', $strrequired, 'required', null, 'client'); + $mform->setType('name', PARAM_TEXT); // let the plugin add the fields they want (either statically or not) if (portfolio_static_function($this->plugin, 'has_admin_config')) { -- 2.43.0