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:
e994754
)
MDL-34311 course: add missing type on cm idnumber
author
Dan Poltawski
<dan@moodle.com>
Mon, 25 Mar 2013 01:26:10 +0000
(09:26 +0800)
committer
Dan Poltawski
<dan@moodle.com>
Mon, 25 Mar 2013 01:30:52 +0000
(09:30 +0800)
We must use PARAM_RAW for idnumbers because external systems could use
any characters and this is a linking field for external systems.
course/moodleform_mod.php
patch
|
blob
|
blame
|
history
diff --git
a/course/moodleform_mod.php
b/course/moodleform_mod.php
index
b4feb9d
..
fc70529
100644
(file)
--- a/
course/moodleform_mod.php
+++ b/
course/moodleform_mod.php
@@
-495,6
+495,7
@@
abstract class moodleform_mod extends moodleform {
if ($this->_features->idnumber) {
$mform->addElement('text', 'cmidnumber', get_string('idnumbermod'));
+ $mform->setType('cmidnumber', PARAM_RAW);
$mform->addHelpButton('cmidnumber', 'idnumbermod');
}