MDL-38738 portfolio: missing PARAM_TEXT

This commit is contained in:
Dan Poltawski
2013-03-27 15:57:35 +08:00
parent 373a8e052c
commit 37836c19fb
+1
View File
@@ -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')) {