Browse files

MDL-34311 course: add missing type on cm idnumber

We must use PARAM_RAW for idnumbers because external systems could use
any characters and this is a linking field for external systems.
  • Loading branch information...
1 parent e994754 commit 9f9dde40eed9011340920acee011334afe6f7f6b @danpoltawski danpoltawski committed Mar 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 course/moodleform_mod.php
@@ -495,6 +495,7 @@ function standard_coursemodule_elements(){
if ($this->_features->idnumber) {
$mform->addElement('text', 'cmidnumber', get_string('idnumbermod'));
+ $mform->setType('cmidnumber', PARAM_RAW);
$mform->addHelpButton('cmidnumber', 'idnumbermod');

0 comments on commit 9f9dde4

Please sign in to comment.