Permalink
Browse files

MDL-38738 portfolio: missing PARAM_TEXT

  • Loading branch information...
1 parent 373a8e0 commit 37836c19fb19f1213e2922806eb7fda110badfdc @danpoltawski danpoltawski committed Mar 27, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/portfolio/forms.php
View
@@ -196,6 +196,7 @@ public function definition() {
$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')) {

0 comments on commit 37836c1

Please sign in to comment.