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.
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user