Skip to content

Commit

Permalink
MDL-38738 portfolio: missing PARAM_TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Mar 27, 2013
1 parent 373a8e0 commit 37836c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/portfolio/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {
Expand Down

0 comments on commit 37836c1

Please sign in to comment.