Skip to content

Commit

Permalink
MDL-34311 course: add missing type on cm idnumber
Browse files Browse the repository at this point in the history
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
danpoltawski committed Mar 25, 2013
1 parent e994754 commit 9f9dde4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions course/moodleform_mod.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ function standard_coursemodule_elements(){


if ($this->_features->idnumber) { if ($this->_features->idnumber) {
$mform->addElement('text', 'cmidnumber', get_string('idnumbermod')); $mform->addElement('text', 'cmidnumber', get_string('idnumbermod'));
$mform->setType('cmidnumber', PARAM_RAW);
$mform->addHelpButton('cmidnumber', 'idnumbermod'); $mform->addHelpButton('cmidnumber', 'idnumbermod');
} }


Expand Down

0 comments on commit 9f9dde4

Please sign in to comment.