Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
373a8e0
)
MDL-38738 portfolio: missing PARAM_TEXT
author
Dan Poltawski
<dan@moodle.com>
Wed, 27 Mar 2013 07:57:35 +0000
(15:57 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Wed, 27 Mar 2013 07:57:35 +0000
(15:57 +0800)
lib/portfolio/forms.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/portfolio/forms.php
b/lib/portfolio/forms.php
index
2e95777
..
14ec892
100644
(file)
--- 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')) {